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

Function getDummy

deps/v8/test/mjsunit/wasm/table.js:287–293  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

285
286(function TestGrowWithInit() {
287 function getDummy(val) {
288 let builder = new WasmModuleBuilder();
289 builder.addFunction('dummy', kSig_i_v)
290 .addBody([kExprI32Const, val])
291 .exportAs('dummy');
292 return builder.instantiate().exports.dummy;
293 }
294 let table = new WebAssembly.Table({element: "anyfunc", initial: 1});
295 table.grow(5, getDummy(24));
296 for (let i = 1; i <= 5; ++i) {

Callers 1

table.jsFile · 0.70

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…