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

Function construct

deps/v8/test/mjsunit/baseline/test-baseline.js:13–17  ·  view source on GitHub ↗
(f, ...args)

Source from the content-addressed store, hash-verified

11}
12
13function construct(f, ...args) {
14 try { new f(...args); } catch (e) {}
15 %CompileBaseline(f);
16 return new f(...args);
17}
18
19// Constants
20assertEquals(run(()=>undefined), undefined);

Callers 1

test-baseline.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected