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

Function checkTableFunc

deps/v8/test/mjsunit/wasm/table-grow.js:198–204  ·  view source on GitHub ↗
(index, expected, ...args)

Source from the content-addressed store, hash-verified

196 print(" initial check");
197
198 function checkTableFunc(index, expected, ...args) {
199 let f = table.get(index);
200 print(" table[" + index + "] = " + f);
201 result = f(...args);
202 print(" -> expect " + expected + ", got " + result);
203 assertEquals(expected, result);
204 }
205
206 checkTableFunc(0, 5, 1, 4);
207 checkTableFunc(1, 9, 8);

Callers 2

table-grow.jsFile · 0.85
verifyTableFuncsFunction · 0.85

Calls 4

fFunction · 0.70
getMethod · 0.65
printFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected