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

Function TestNew

deps/v8/test/mjsunit/harmony/private.js:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42// Test different forms of constructor calls, all equivalent.
43function TestNew() {
44 for (var i = 0; i < 2; ++i) {
45 for (var j = 0; j < 5; ++j) {
46 symbols.push(%CreatePrivateSymbol("66"))
47 symbols.push(Object(%CreatePrivateSymbol("66")).valueOf())
48 }
49 gc() // Promote existing symbols and then allocate some more.
50 }
51}
52TestNew()
53
54

Callers 1

private.jsFile · 0.70

Calls 3

ObjectFunction · 0.85
gcFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected