X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJS.java;h=a75bb27da70eea0b204f61dd4d7ab684dbb7cae3;hp=538fc1aa27d0d0ff80757e2abc53efb78ebb180a;hb=1926cc279e57fa3f6266f0b988408ec9d487d963;hpb=9ed8d93bbb0b40791a4ce31a9a8d79d24a379eb9 diff --git a/src/org/ibex/js/JS.java b/src/org/ibex/js/JS.java index 538fc1a..a75bb27 100644 --- a/src/org/ibex/js/JS.java +++ b/src/org/ibex/js/JS.java @@ -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);