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

Function newInstance

deps/v8/test/mjsunit/wasm/instance-gc.js:22–27  ·  view source on GitHub ↗
(module, val)

Source from the content-addressed store, hash-verified

20}
21
22function newInstance(module, val) {
23 var instance = new WebAssembly.Instance(module);
24 var view = new Int32Array(instance.exports.memory.buffer);
25 view[0] = val;
26 return instance;
27}
28
29function TestSingleLiveInstance(gc) {
30 let module = newModule();

Callers 3

TestSingleLiveInstanceFunction · 0.85
TestMultiInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected