We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed69af4 commit 61e1bddCopy full SHA for 61e1bdd
lib/database.js
@@ -25,6 +25,9 @@ function Database(filenameGiven, options) {
25
if (typeof options !== 'object' || options === null) {
26
options = {};
27
}
28
+ if ('readOnly' in options) {
29
+ throw new TypeError('Misspelled option "readOnly" should be "readonly"');
30
+ }
31
var memory = util.getBooleanOption(options, 'memory');
32
var readonly = util.getBooleanOption(options, 'readonly');
33
var fileMustExist = util.getBooleanOption(options, 'fileMustExist');
0 commit comments