зеркало из https://github.com/mozilla/pjs.git
fixes case where an InterpretedFunction has both a closure and needs an activation.
This commit is contained in:
Родитель
2cf2fda629
Коммит
5036447688
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче