fix bug: LoopMarker is not an instance of JS (yet)
authoradam <adam@megacz.com>
Mon, 17 Jan 2005 01:00:11 +0000 (01:00 +0000)
committeradam <adam@megacz.com>
Mon, 17 Jan 2005 01:00:11 +0000 (01:00 +0000)
darcs-hash:20050117010011-5007d-e1bf1a24f34bf68d77e3d74da72d1c08a56f2ac0.gz

src/org/ibex/js/Interpreter.java

index 26521fa..8ebbde0 100644 (file)
@@ -159,7 +159,7 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
             case BREAK:
             case CONTINUE:
                 while(!stack.empty()) {
             case BREAK:
             case CONTINUE:
                 while(!stack.empty()) {
-                    JS o = (JS)stack.pop();
+                    Object o = stack.pop();
                     if (o instanceof CallMarker) je("break or continue not within a loop");
                     if (o instanceof TryMarker) {
                         if(((TryMarker)o).finallyLoc < 0) continue; // no finally block, keep going
                     if (o instanceof CallMarker) je("break or continue not within a loop");
                     if (o instanceof TryMarker) {
                         if(((TryMarker)o).finallyLoc < 0) continue; // no finally block, keep going