1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
function testClosureIncrSideExit() { { let f = function (y) { { let ff = function (g) { for each(let h in g) { if (++y > 5) { return 'ddd'; } } return 'qqq'; }; return ff(['', null, '', false, '', '', null]); } }; return f(-1); } } assertEq(testClosureIncrSideExit(), "ddd");