Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /wasm/webapi/rejected-arg.any.html - WPT Dashboard Interop Dashboard
- /wasm/webapi/rejected-arg.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /wasm/webapi/rejected-arg.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /wasm/webapi/rejected-arg.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
for (const method of ["compileStreaming", "instantiateStreaming"]) {
promise_test(t => {
const error = { "name": "custom error" };
const promise = Promise.reject(error);
return promise_rejects_exactly(t, error, WebAssembly[method](promise));
}, `${method}`);
}