From 6db53c35e3fa2611e41f8cc29a4e611ba5c8387c Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Fri, 2 May 2003 12:16:05 +0000 Subject: [PATCH] In ScriptRuntime.callOrNewSpecial remove special handling of exec calls since it is never used. --- .../src/org/mozilla/javascript/ScriptRuntime.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java b/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java index 692f7682a4d..5dc09de13cd 100644 --- a/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java +++ b/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java @@ -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 .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);