(makeResponsePromise, checkResult)
| 36 | // Response. The checkResult function receives the Promise returned by |
| 37 | // WebAssembly.compileStreaming and must return a Promise itself. |
| 38 | function 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 | |
| 47 | function testCompileStreamingSuccess(makeResponsePromise) { |
| 48 | return testCompileStreaming(makeResponsePromise, common.mustCall(async (modPromise) => { |
no test coverage detected
searching dependent graphs…