(foo)
| 11 | function foo() { return new A; } |
| 12 | |
| 13 | function test(foo) { |
| 14 | %PrepareFunctionForOptimization(foo); |
| 15 | assertInstanceof(foo(), A); |
| 16 | assertEquals(0, foo().length); |
| 17 | assertInstanceof(foo(), A); |
| 18 | assertEquals(0, foo().length); |
| 19 | %OptimizeFunctionOnNextCall(foo); |
| 20 | assertInstanceof(foo(), A); |
| 21 | assertEquals(0, foo().length); |
| 22 | } |
| 23 | test(foo); |
| 24 | |
| 25 | // Non-extensible |
no test coverage detected
searching dependent graphs…