Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | var a = Math.sin(Math.PI/2); // spec does not specify precise answer here... |
michael@0 | 2 | if (a === 1) { // ...but if a === 1 here... |
michael@0 | 3 | switch (a) { |
michael@0 | 4 | case 1: break; // ...then it must also match here |
michael@0 | 5 | default: throw "FAIL"; |
michael@0 | 6 | } |
michael@0 | 7 | } |