Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// 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}`);
}