Make depthed lookup call non-literal

Prevents duplicate calls from being made.
This commit is contained in:
kpdecker
2014-08-15 00:37:57 -05:00
parent 084e8fe1b7
commit d05245b5f5
@@ -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();
}