summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testConstSwitch2.js
blob: 48d5f2c9df25d4928b6053d1eae35d512acb1d23 (plain)
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");