[go: nahoru, domu]

blob: 49018db5e89eb0fa49bf9b6fa1017c9bfea7c3cd [file] [log] [blame]
// 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}`);
}