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

Function TestChains

deps/v8/test/mjsunit/instanceof.js:34–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32assertTrue([] instanceof Array);
33
34function TestChains() {
35 var A = {};
36 var B = {};
37 var C = {};
38 B.__proto__ = A;
39 C.__proto__ = B;
40
41 function F() { }
42 F.prototype = A;
43 assertTrue(C instanceof F);
44 assertTrue(B instanceof F);
45 assertFalse(A instanceof F);
46
47 F.prototype = B;
48 assertTrue(C instanceof F);
49 assertFalse(B instanceof F);
50 assertFalse(A instanceof F);
51
52 F.prototype = C;
53 assertFalse(C instanceof F);
54 assertFalse(B instanceof F);
55 assertFalse(A instanceof F);
56}
57
58TestChains();
59

Callers 1

instanceof.jsFile · 0.70

Calls 2

assertTrueFunction · 0.70
assertFalseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…