MCPcopy Create free account
hub / github.com/nodejs/node / instanceof_check

Function instanceof_check

deps/v8/test/mjsunit/array-feedback.js:37–41  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

35 assertEquals(1, realmB);
36
37 function instanceof_check(type) {
38 assertTrue(type() instanceof type);
39 assertTrue(type(5) instanceof type);
40 assertTrue(type(1,2,3) instanceof type);
41 }
42
43 var realmBArray = Realm.eval(realmB, "Array");
44 instanceof_check(Array);

Callers 1

array-feedback.jsFile · 0.70

Calls 2

assertTrueFunction · 0.70
typeFunction · 0.50

Tested by

no test coverage detected