added CALLMETHOD case to JS.pause()
[org.ibex.js.git] / src / org / ibex / js / JS.java
index 538fc1a..a75bb27 100644 (file)
@@ -133,8 +133,8 @@ public abstract class JS {
         boolean get;
         switch(i.f.op[i.pc]) {
             case Tokens.RETURN: case ByteCodes.PUT: get = false; break;
-            case ByteCodes.GET: case ByteCodes.CALL: get = true; break;
-            default: throw new Error("should never happen");
+            case ByteCodes.GET: case ByteCodes.CALL: case ByteCodes.CALLMETHOD: get = true; break;
+            default: throw new Error("should never happen: i.f.op[i.pc] == " + i.f.op[i.pc]);
         }
         i.pausecount++;
         return new JS.UnpauseCallback(i,get);