Skip to content

Commit bbfcd94

Browse files
committed
Touch up other location under var
1 parent 219b0d0 commit bbfcd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

defaultMethods.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const defaultMethods = {
201201
}
202202
const notFound = b === undefined ? null : b
203203
if (typeof key === 'undefined' || key === '' || key === null) {
204-
if (engine.allowFunctions || typeof (context && context[key]) !== 'function') {
204+
if (engine.allowFunctions || typeof context !== 'function') {
205205
return context
206206
}
207207
return null

0 commit comments

Comments
 (0)