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

Function testContextLeak

test/pummel/test-vm-memleak.js:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}), 1);
57
58function testContextLeak() {
59 // TODO: This needs a comment explaining what it's doing. Will it crash the
60 // test if there is a memory leak? Or what?
61 for (let i = 0; i < 1000; i++)
62 vm.createContext({});
63}

Callers 1

test-vm-memleak.jsFile · 0.85

Calls 1

createContextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…