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

Function assertCompiles

deps/v8/test/mjsunit/wasm/async-compile.js:7–10  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

5d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
6
7async function assertCompiles(buffer) {
8 var module = await WebAssembly.compile(buffer);
9 assertInstanceof(module, WebAssembly.Module);
10}
11
12function assertCompileError(buffer, msg) {
13 if (typeof msg == 'string') {

Callers 1

async-compile.jsFile · 0.85

Calls 2

assertInstanceofFunction · 0.85
compileMethod · 0.45

Tested by

no test coverage detected