(f)
| 15 | } |
| 16 | |
| 17 | function testThrows(f) { |
| 18 | %PrepareFunctionForOptimization(f); |
| 19 | assertThrows(f); |
| 20 | assertThrows(f); |
| 21 | %OptimizeFunctionOnNextCall(f); |
| 22 | assertThrows(f); |
| 23 | assertThrows(f); |
| 24 | } |
| 25 | |
| 26 | function f1() { return Infinity; } |
| 27 | test((1/0), f1); |
no test coverage detected