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

Function Inherits

deps/v8/test/mjsunit/tools/profile.mjs:134–140  ·  view source on GitHub ↗
(childCtor, parentCtor)

Source from the content-addressed store, hash-verified

132
133
134function Inherits(childCtor, parentCtor) {
135 function tempCtor() {};
136 tempCtor.prototype = parentCtor.prototype;
137 childCtor.superClass_ = parentCtor.prototype;
138 childCtor.prototype = new tempCtor();
139 childCtor.prototype.constructor = childCtor;
140};
141
142
143(function testCallTreeBuilding() {

Callers 1

profile.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected