зеркало из https://github.com/mozilla/pjs.git
Add missing method for 1.4R3 compatibility.
This commit is contained in:
Родитель
1931f31f5b
Коммит
5b52db907b
|
@ -1179,6 +1179,17 @@ public class ScriptRuntime {
|
|||
return enum.nextElement();
|
||||
}
|
||||
|
||||
// Form used by class files generated by 1.4R3 and earlier.
|
||||
public static Object call(Context cx, Object fun, Object thisArg,
|
||||
Object[] args)
|
||||
throws JavaScriptException
|
||||
{
|
||||
Scriptable scope = null;
|
||||
if (fun instanceof Scriptable)
|
||||
scope = ((Scriptable) fun).getParentScope();
|
||||
return call(cx, fun, thisArg, args, scope);
|
||||
}
|
||||
|
||||
public static Object call(Context cx, Object fun, Object thisArg,
|
||||
Object[] args, Scriptable scope)
|
||||
throws JavaScriptException
|
||||
|
@ -2053,7 +2064,6 @@ public class ScriptRuntime {
|
|||
}
|
||||
|
||||
static boolean hasProp(Scriptable start, String name) {
|
||||
|
||||
Scriptable m = start;
|
||||
do {
|
||||
if (m.has(name, start))
|
||||
|
|
|
@ -1179,6 +1179,17 @@ public class ScriptRuntime {
|
|||
return enum.nextElement();
|
||||
}
|
||||
|
||||
// Form used by class files generated by 1.4R3 and earlier.
|
||||
public static Object call(Context cx, Object fun, Object thisArg,
|
||||
Object[] args)
|
||||
throws JavaScriptException
|
||||
{
|
||||
Scriptable scope = null;
|
||||
if (fun instanceof Scriptable)
|
||||
scope = ((Scriptable) fun).getParentScope();
|
||||
return call(cx, fun, thisArg, args, scope);
|
||||
}
|
||||
|
||||
public static Object call(Context cx, Object fun, Object thisArg,
|
||||
Object[] args, Scriptable scope)
|
||||
throws JavaScriptException
|
||||
|
@ -2053,7 +2064,6 @@ public class ScriptRuntime {
|
|||
}
|
||||
|
||||
static boolean hasProp(Scriptable start, String name) {
|
||||
|
||||
Scriptable m = start;
|
||||
do {
|
||||
if (m.has(name, start))
|
||||
|
|
Загрузка…
Ссылка в новой задаче