Add missing method for 1.4R3 compatibility.

This commit is contained in:
norris%netscape.com 2000-04-18 16:53:28 +00:00
Родитель 1931f31f5b
Коммит 5b52db907b
2 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -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))