Changing ScriptRuntime.initScript to return vois since it does not and should not change scope
git-svn-id: svn://10.0.0.236/trunk@147479 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c13e11b967
commit
2b6dcc0402
@ -1876,10 +1876,10 @@ public class ScriptRuntime {
|
||||
}
|
||||
}
|
||||
|
||||
public static Scriptable initScript(Context cx, Scriptable scope,
|
||||
NativeFunction funObj,
|
||||
Scriptable thisObj,
|
||||
boolean fromEvalCode)
|
||||
public static void initScript(Context cx, final Scriptable scope,
|
||||
NativeFunction funObj,
|
||||
Scriptable thisObj,
|
||||
boolean fromEvalCode)
|
||||
{
|
||||
String[] argNames = funObj.argNames;
|
||||
if (argNames != null) {
|
||||
@ -1908,8 +1908,6 @@ public class ScriptRuntime {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return scope;
|
||||
}
|
||||
|
||||
public static Scriptable runScript(Script script) {
|
||||
|
||||
@ -1312,6 +1312,7 @@ class BodyCodegen
|
||||
+"Lorg/mozilla/javascript/Scriptable;"
|
||||
+"[Ljava/lang/Object;"
|
||||
+")Lorg/mozilla/javascript/Scriptable;");
|
||||
cfw.addAStore(variableObjectLocal);
|
||||
debugVariableName = "activation";
|
||||
} else {
|
||||
cfw.addALoad(contextLocal);
|
||||
@ -1325,10 +1326,9 @@ class BodyCodegen
|
||||
+"Lorg/mozilla/javascript/NativeFunction;"
|
||||
+"Lorg/mozilla/javascript/Scriptable;"
|
||||
+"Z"
|
||||
+")Lorg/mozilla/javascript/Scriptable;");
|
||||
+")V");
|
||||
debugVariableName = "global";
|
||||
}
|
||||
cfw.addAStore(variableObjectLocal);
|
||||
|
||||
int functionCount = scriptOrFn.getFunctionCount();
|
||||
for (int i = 0; i != functionCount; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user