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

Function CheckFunction

deps/v8/test/mjsunit/es6/classes-subclass-builtins.js:91–109  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

89 assertEquals(undefined, Object.getOwnPropertyDescriptor(strict_func, "caller"));
90
91 function CheckFunction(func) {
92 assertEquals("function", typeof func);
93 assertTrue(func instanceof Object);
94 assertTrue(func instanceof Function);
95 assertTrue(func instanceof A);
96 checkPrototypeChain(func, [A, Function, Object]);
97 assertEquals(42, func.a);
98 assertEquals(4.2, func.d);
99 assertEquals(153, func.o.foo);
100 assertTrue(undefined !== func.prototype);
101 func.prototype.bar = "func.bar";
102 var obj = new func();
103 assertTrue(obj instanceof Object);
104 assertTrue(obj instanceof func);
105 assertEquals("object", typeof obj);
106 assertEquals(113, obj.foo);
107 assertEquals("func.bar", obj.bar);
108 delete func.prototype.bar;
109 }
110
111 var source = "this.foo = 113;";
112

Callers 1

Calls 5

checkPrototypeChainFunction · 0.85
funcFunction · 0.70
nextMethod · 0.65
assertEqualsFunction · 0.50
assertTrueFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…