Skip to content

Commit 2a89bee

Browse files
author
Ruben Bridgewater
committed
Accept inherited attributes etc.
1 parent 6c149ea commit 2a89bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function JavascriptRedisParser (options) {
253253
throw new TypeError('Please provide all return functions while initiating the parser')
254254
}
255255
for (var key in options) {
256-
if (typeof options[key] !== optionTypes[key]) {
256+
if (optionTypes.hasOwnProperty(key) && typeof options[key] !== optionTypes[key]) {
257257
throw new TypeError('The options argument contains the property "' + key + '" that is either unkown or of a wrong type')
258258
}
259259
}

0 commit comments

Comments
 (0)