From 44c0484b0bf351c713ac60fb79a1047c1568aa4c Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 17 Jan 2005 01:00:11 +0000 Subject: [PATCH] fix bug: LoopMarker is not an instance of JS (yet) darcs-hash:20050117010011-5007d-e1bf1a24f34bf68d77e3d74da72d1c08a56f2ac0.gz --- src/org/ibex/js/Interpreter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4