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

Function testCompileStreaming

test/es-module/test-wasm-web-api.js:38–45  ·  view source on GitHub ↗
(makeResponsePromise, checkResult)

Source from the content-addressed store, hash-verified

36// Response. The checkResult function receives the Promise returned by
37// WebAssembly.compileStreaming and must return a Promise itself.
38function testCompileStreaming(makeResponsePromise, checkResult) {
39 return withPromiseAndResolved(
40 common.mustCall(makeResponsePromise, 2),
41 common.mustCall((response) => {
42 return checkResult(WebAssembly.compileStreaming(response));
43 }, 2)
44 );
45}
46
47function testCompileStreamingSuccess(makeResponsePromise) {
48 return testCompileStreaming(makeResponsePromise, common.mustCall(async (modPromise) => {

Callers 3

Calls 1

withPromiseAndResolvedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…