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

Function createWasmModule

test/fixtures/wpt/wasm/resources/load_wasm.js:5–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3// found in the LICENSE file.
4
5function createWasmModule() {
6 return fetch('/wasm/incrementer.wasm')
7 .then(response => {
8 if (!response.ok) throw new Error(response.statusText);
9 return response.arrayBuffer();
10 })
11 .then(WebAssembly.compile);
12}

Callers 1

idlharness.any.jsFile · 0.50

Calls 3

fetchFunction · 0.85
arrayBufferMethod · 0.65
thenMethod · 0.45

Tested by

no test coverage detected