added CALLMETHOD case to JS.pause()
authoradam <adam@megacz.com>
Wed, 29 Dec 2004 02:46:38 +0000 (02:46 +0000)
committeradam <adam@megacz.com>
Wed, 29 Dec 2004 02:46:38 +0000 (02:46 +0000)
darcs-hash:20041229024638-5007d-5ffe3a3c8803381e0b32558e13e22ebc0fba02ac.gz

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);