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

Function assertCompileError

deps/v8/test/mjsunit/wasm/async-compile.js:12–20  ·  view source on GitHub ↗
(buffer, msg)

Source from the content-addressed store, hash-verified

10}
11
12function assertCompileError(buffer, msg) {
13 if (typeof msg == 'string') {
14 msg = 'WebAssembly.compile(): ' + msg;
15 } else {
16 assertInstanceof(msg, RegExp);
17 }
18 return assertThrowsAsync(
19 WebAssembly.compile(buffer), WebAssembly.CompileError, msg);
20}
21
22assertPromiseResult(async function basicCompile() {
23 let ok_buffer = (() => {

Callers 1

async-compile.jsFile · 0.70

Calls 3

assertInstanceofFunction · 0.85
assertThrowsAsyncFunction · 0.50
compileMethod · 0.45

Tested by

no test coverage detected