Make depthed lookup call non-literal
Prevents duplicate calls from being made.
This commit is contained in:
@@ -369,7 +369,7 @@ JavaScriptCompiler.prototype = {
|
||||
if (!scoped && this.options.compat && !this.lastContext) {
|
||||
// The depthed query is expected to handle the undefined logic for the root level that
|
||||
// is implemented below, so we evaluate that directly in compat mode
|
||||
this.pushStackLiteral(this.depthedLookup(parts[i++]));
|
||||
this.push(this.depthedLookup(parts[i++]));
|
||||
} else {
|
||||
this.pushContext();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user