remove JS.call(JS[]), JS.getInputStream()
[org.ibex.js.git] / src / org / ibex / js / Interpreter.java
index 611d2d8..e20e630 100644 (file)
@@ -379,7 +379,7 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
                     break;
                 } else {
                     JS c = (JS)object;
-                    ret = method == null ? c.call(jsargs) : c.call(method, jsargs);
+                    ret = c.call(method, jsargs);
                 }
                 
                 if (pausecount > initialPauseCount) { pc++; return null; }
@@ -663,7 +663,10 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
         private JS method;
         JS obj;
         public Stub(JS obj, JS method) { this.obj = obj; this.method = method; }
-        public JS call(JS[] args) throws JSExn { return obj.call(method, args); }
+        public JS call(JS method, JS[] args) throws JSExn {
+            if (method==null) return obj.call(this.method, args);
+            return super.call(method, args);
+        }
     }
     
     static final class Stack {