Skip to content

Commit d498175

Browse files
committed
check if options is supplied.
1 parent e4eee07 commit d498175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jmespath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@
12031203
_signature: [{types: [TYPE_ANY], variadic: true}]
12041204
}
12051205
};
1206-
if (options.functionTable) {
1206+
if (options && options.functionTable) {
12071207
for (var property in options.functionTable) {
12081208
if (options.functionTable.hasOwnProperty(property)) {
12091209
this.functionTable[property] = options.functionTable[property];

0 commit comments

Comments
 (0)