include CALLMETHOD and GET_PRESERVE as acceptable restart bytecodes
[org.ibex.js.git] / src / org / ibex / js / Interpreter.java
index 21fffba..26521fa 100644 (file)
@@ -71,7 +71,7 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
         pausecount++;
         switch(f.op[pc]) {
             case Tokens.RETURN: case ByteCodes.PUT: get = false; break;
-            case ByteCodes.GET: case ByteCodes.CALL: get = true; break;
+            case ByteCodes.GET: case ByteCodes.GET_PRESERVE: case ByteCodes.CALLMETHOD: case ByteCodes.CALL: get = true; break;
             default: throw new Error("paused on unexpected bytecode: " + f.op[pc]);
         }
     }