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

Function getDummy

deps/v8/test/mjsunit/wasm/externref-table.js:122–128  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

120})();
121
122function getDummy(val) {
123 let builder = new WasmModuleBuilder();
124 builder.addFunction('dummy', kSig_i_v)
125 .addBody([kExprI32Const, val])
126 .exportAs('dummy');
127 return builder.instantiate().exports.dummy;
128}
129
130(function TestFuncRefTableConstructorWithDefaultValue() {
131 print(arguments.callee.name);

Callers 1

externref-table.jsFile · 0.70

Calls 4

addFunctionMethod · 0.95
instantiateMethod · 0.95
exportAsMethod · 0.45
addBodyMethod · 0.45

Tested by

no test coverage detected