From: adam Date: Mon, 17 Jan 2005 01:00:11 +0000 (+0000) Subject: fix bug: LoopMarker is not an instance of JS (yet) X-Git-Url: http://git.megacz.com/?p=org.ibex.js.git;a=commitdiff_plain;h=44c0484b0bf351c713ac60fb79a1047c1568aa4c;ds=sidebyside fix bug: LoopMarker is not an instance of JS (yet) darcs-hash:20050117010011-5007d-e1bf1a24f34bf68d77e3d74da72d1c08a56f2ac0.gz --- diff --git a/src/org/ibex/js/Interpreter.java b/src/org/ibex/js/Interpreter.java index 26521fa..8ebbde0 100644 --- a/src/org/ibex/js/Interpreter.java +++ b/src/org/ibex/js/Interpreter.java @@ -159,7 +159,7 @@ class Interpreter implements ByteCodes, Tokens, Pausable { 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