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

Function Factory

deps/v8/test/mjsunit/compiler/object-constructor.js:41–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39(function ObjectConstructorSubClassing() {
40 "use strict";
41 const Factory = Base => class A extends Base {};
42 const A = Factory(Object);
43 function foo() {
44 return new A(1, 2, 3);

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected