In ScriptRuntime.callOrNewSpecial remove special handling of exec calls since it is never used.

This commit is contained in:
igor%mir2.org 2003-05-02 12:16:05 +00:00
Родитель 1460a34ed2
Коммит 6db53c35e3
1 изменённых файлов: 0 добавлений и 15 удалений

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

@ -1216,23 +1216,8 @@ public class ScriptRuntime {
return NativeWith.newWithSpecial(cx, args, f, !isCall);
}
}
else if (name.equals("exec")) {
if (f.master.getClass() == NativeScriptClass) {
return ((NativeScript)jsThis).
exec(cx, ScriptableObject.getTopLevelScope(scope));
}
else {
RegExpProxy proxy = cx.getRegExpProxy();
if (proxy != null && proxy.isRegExp(jsThis)) {
return call(cx, fun, jsThis, args, scope);
}
}
}
}
}
else // could've been <java>.XXX.exec() that was re-directed here
if (fun instanceof NativeJavaMethod)
return call(cx, fun, jsThis, args, scope);
if (isCall)
return call(cx, fun, jsThis, args, scope);