summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug570663-2.js
blob: bc4b08869da4a470a9eb6254c9aa19cfbdc331e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f() {
    var x;
    for (var a = 0; a < 4; a++) {
	switch (NaN) {
	default:
	    x = a;
	}
    }
    assertEq(x, 3);
}

f();