Skip to content

Commit 5bd0f54

Browse files
committed
fixup! test: ensure assertions are reachable in test/es-module
1 parent fd970e9 commit 5bd0f54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/es-module/test-wasm-web-api.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function testCompileStreamingSuccess(makeResponsePromise) {
4848
return testCompileStreaming(makeResponsePromise, common.mustCall(async (modPromise) => {
4949
const mod = await modPromise;
5050
assert.strictEqual(mod.constructor, WebAssembly.Module);
51-
}));
51+
}, 2));
5252
}
5353

5454
function testCompileStreamingRejection(makeResponsePromise, rejection) {
5555
return testCompileStreaming(makeResponsePromise, common.mustCall((modPromise) => {
5656
assert.strictEqual(modPromise.constructor, Promise);
5757
return assert.rejects(modPromise, rejection);
58-
}));
58+
}, 2));
5959
}
6060

6161
function testCompileStreamingSuccessUsingFetch(responseCallback) {
@@ -76,7 +76,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) {
7676
code: 'ERR_INVALID_ARG_TYPE',
7777
message: /^The "source" argument .*$/
7878
});
79-
}));
79+
}, 2));
8080
}
8181

8282
// When given a Promise, any rejection should be propagated as-is.
@@ -150,7 +150,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) {
150150
res.end(simpleWasmBytes.slice(8));
151151
}
152152
})(0);
153-
}));
153+
}, 2));
154154

155155
// A valid WebAssembly file with an empty parameter in the (otherwise valid)
156156
// MIME type.
@@ -245,5 +245,5 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) {
245245
/^\s*at http:\/\/127\.0\.0\.1:\d+\/foo\.wasm:wasm-function\[0\]:0x22$/);
246246
return true;
247247
});
248-
}));
248+
}, 2));
249249
})().then(common.mustCall());

0 commit comments

Comments
 (0)