Skip to content

Commit 853f0dd

Browse files
committed
fix function check: context is already at originalcontext[key]
1 parent f4880c0 commit 853f0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defaultMethods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const defaultMethods = {
217217
return notFound
218218
}
219219
}
220-
if (engine.allowFunctions || typeof (context && context[key]) !== 'function') {
220+
if (engine.allowFunctions || typeof context !== 'function') {
221221
return context
222222
}
223223
return null

0 commit comments

Comments
 (0)