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

Function checkExpr

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:1327–1334  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

1325}
1326
1327function checkExpr(expr) {
1328 for (let b of expr) {
1329 if (typeof b !== 'number' || (b & (~0xFF)) !== 0) {
1330 throw new Error(
1331 'invalid body (entries must be 8 bit numbers): ' + expr);
1332 }
1333 }
1334}
1335
1336class WasmTableBuilder {
1337 constructor(module, type, initial_size, max_size, init_expr, is_shared, is_table64) {

Callers 7

addBodyMethod · 0.70
addGlobalMethod · 0.70
addTableMethod · 0.70
addActiveDataSegmentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected