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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:8290313d265a
1 var a = Math.sin(Math.PI/2); // spec does not specify precise answer here...
2 if (a === 1) { // ...but if a === 1 here...
3 switch (a) {
4 case 1: break; // ...then it must also match here
5 default: throw "FAIL";
6 }
7 }

mercurial