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

Function init

deps/v8/test/mjsunit/wasm/table.js:242–245  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

240 let {wasm, host} = builder.instantiate({test: {f() {}}}).exports;
241
242 function init(table) {
243 for (let i = 0; i < 5; ++i) table.set(i, wasm);
244 for (let i = 15; i < 20; ++i) table.set(i, host);
245 }
246 function check(table) {
247 for (let i = 0; i < 5; ++i) assertSame(wasm, table.get(i));
248 for (let i = 6; i < 15; ++i) assertSame(null, table.get(i));

Callers 3

table.jsFile · 0.70
memory64.jsFile · 0.70

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…