(expected, f)
| 5 | // Flags: --allow-natives-syntax |
| 6 | |
| 7 | function test(expected, f) { |
| 8 | %PrepareFunctionForOptimization(f); |
| 9 | assertEquals(expected, f()); |
| 10 | assertEquals(expected, f()); |
| 11 | %OptimizeFunctionOnNextCall(f); |
| 12 | assertEquals(expected, f()); |
| 13 | assertEquals(expected, f()); |
| 14 | } |
| 15 | |
| 16 | function testThrows(f) { |
| 17 | %PrepareFunctionForOptimization(f); |
no test coverage detected
searching dependent graphs…