MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

deps/v8/test/mjsunit/compiler/array-subclass.js:13–22  ·  view source on GitHub ↗
(foo)

Source from the content-addressed store, hash-verified

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

Callers 1

array-subclass.jsFile · 0.70

Calls 4

assertInstanceofFunction · 0.85
fooFunction · 0.70
assertEqualsFunction · 0.70
assertSameFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…