ed1e77d3 A |
1 | var minus_three_quarters = -0.75; |
2 | |
3 | function foo() { |
4 | return Math.abs(minus_three_quarters); |
5 | } |
6 | |
7 | for (var i = 0; i < 10000; i++) { |
8 | var result = foo(); |
9 | if (result < 0) |
10 | throw "Error: Math.abs returned a negative value."; |
11 | } |