summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testDoubleZeroInSwitch1.js
blob: 2b147aaf27b96f93084d023672620fc3e4117df6 (plain)
1
2
3
4
5
6
7
var a = Math.sin(Math.PI/2);  // spec does not specify precise answer here...
if (a === 1) {    // ...but if a === 1 here...
    switch (a) {
      case 1: break;  // ...then it must also match here
      default: throw "FAIL";
    }
}