js/src/jit-test/tests/basic/testTableSwitch1.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:c9556dc85588
1 function testTableSwitch1() {
2 var x = 'miss';
3 var i, j = 0;
4 for (i = 0; i < 19; i++) {
5 switch (x) {
6 case 1: case 2: case 3: case 4: case 5: throw "FAIL";
7 default: j++;
8 }
9 }
10 assertEq(i, j);
11 }
12
13 testTableSwitch1();

mercurial