mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
fixes case where an InterpretedFunction has both a closure and needs an activation.
This commit is contained in:
parent
0a5450b336
commit
f32c492fc7
@ -71,13 +71,12 @@ class InterpretedFunction extends NativeFunction {
|
||||
Object[] args)
|
||||
throws JavaScriptException
|
||||
{
|
||||
itsData.itsCX = cx;
|
||||
if (itsClosure != null)
|
||||
scope = itsClosure;
|
||||
if (itsData.itsNeedsActivation)
|
||||
scope = ScriptRuntime.initVarObj(cx, scope, this, thisObj, args);
|
||||
itsData.itsCX = cx;
|
||||
if (itsClosure == null)
|
||||
itsData.itsScope = scope;
|
||||
else
|
||||
itsData.itsScope = itsClosure;
|
||||
itsData.itsScope = scope;
|
||||
itsData.itsThisObj = thisObj;
|
||||
itsData.itsInArgs = args;
|
||||
return Interpreter.interpret(itsData);
|
||||
|
@ -71,13 +71,12 @@ class InterpretedFunction extends NativeFunction {
|
||||
Object[] args)
|
||||
throws JavaScriptException
|
||||
{
|
||||
itsData.itsCX = cx;
|
||||
if (itsClosure != null)
|
||||
scope = itsClosure;
|
||||
if (itsData.itsNeedsActivation)
|
||||
scope = ScriptRuntime.initVarObj(cx, scope, this, thisObj, args);
|
||||
itsData.itsCX = cx;
|
||||
if (itsClosure == null)
|
||||
itsData.itsScope = scope;
|
||||
else
|
||||
itsData.itsScope = itsClosure;
|
||||
itsData.itsScope = scope;
|
||||
itsData.itsThisObj = thisObj;
|
||||
itsData.itsInArgs = args;
|
||||
return Interpreter.interpret(itsData);
|
||||
|
Loading…
Reference in New Issue
Block a user