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

Function assertInvalid

deps/v8/test/mjsunit/wasm/stringrefs-js.js:9–14  ·  view source on GitHub ↗
(fn, message)

Source from the content-addressed store, hash-verified

7d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
8
9function assertInvalid(fn, message) {
10 let builder = new WasmModuleBuilder();
11 fn(builder);
12 assertThrows(() => builder.toModule(), WebAssembly.CompileError,
13 `WebAssembly.Module(): ${message}`);
14}
15
16(function TestPassthrough() {
17 let kSig_w_w = makeSig([kWasmStringRef], [kWasmStringRef]);

Callers

nothing calls this directly

Calls 3

toModuleMethod · 0.95
fnFunction · 0.70
assertThrowsFunction · 0.50

Tested by

no test coverage detected