1 2 3 4 5 6
function testConstSwitch2() { var x; for (var j = 0; j < 4; ++j) { switch(0/0) { } } return "ok"; } assertEq(testConstSwitch2(), "ok");