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

Function assertTableIsValid

deps/v8/test/mjsunit/wasm/table.js:14–20  ·  view source on GitHub ↗
(table, length)

Source from the content-addressed store, hash-verified

12const kV8MaxWasmTableSize = 10000000;
13
14function assertTableIsValid(table, length) {
15 assertSame(WebAssembly.Table.prototype, table.__proto__);
16 assertSame(WebAssembly.Table, table.constructor);
17 assertTrue(table instanceof Object);
18 assertTrue(table instanceof WebAssembly.Table);
19 assertEquals(length, table.length);
20}
21
22(function TestConstructor() {
23 assertTrue(WebAssembly.Table instanceof Function);

Callers 1

table.jsFile · 0.85

Calls 3

assertSameFunction · 0.50
assertTrueFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…