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

Function TestSingleLiveInstance

deps/v8/test/mjsunit/wasm/instance-gc.js:29–41  ·  view source on GitHub ↗
(gc)

Source from the content-addressed store, hash-verified

27}
28
29function TestSingleLiveInstance(gc) {
30 let module = newModule();
31
32 print("TestSingleLiveInstance...");
33 for (var i = 0; i < 5; i++) {
34 (() => { // don't leak references between iterations.
35 print(" [" + i + "]...");
36 gc();
37 var instance = newInstance(module, i + 99);
38 assertEquals(i + 99, instance.exports.main());
39 })();
40 }
41}
42
43TestSingleLiveInstance(nogc);
44TestSingleLiveInstance(gc);

Callers 1

instance-gc.jsFile · 0.85

Calls 6

newModuleFunction · 0.85
newInstanceFunction · 0.85
printFunction · 0.50
gcFunction · 0.50
assertEqualsFunction · 0.50
mainMethod · 0.45

Tested by

no test coverage detected