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 6c149ea commit 2a89beeCopy full SHA for 2a89bee
lib/parser.js
@@ -253,7 +253,7 @@ function JavascriptRedisParser (options) {
253
throw new TypeError('Please provide all return functions while initiating the parser')
254
}
255
for (var key in options) {
256
- if (typeof options[key] !== optionTypes[key]) {
+ if (optionTypes.hasOwnProperty(key) && typeof options[key] !== optionTypes[key]) {
257
throw new TypeError('The options argument contains the property "' + key + '" that is either unkown or of a wrong type')
258
259
0 commit comments