michael@0: function nestedExit(x) { michael@0: var q = 0; michael@0: for (var i = 0; i < 10; ++i) michael@0: { michael@0: if (x) michael@0: ++q; michael@0: } michael@0: } michael@0: function nestedExitLoop() { michael@0: for (var j = 0; j < 10; ++j) michael@0: nestedExit(j < 7); michael@0: return "ok"; michael@0: } michael@0: assertEq(nestedExitLoop(), "ok");