blob: 71bf98260c1df8de9a929676b6a8fbfdc585444f [file] [log] [blame] [edit]
// META: global=window,worker
const statuses = [
0,
300,
400,
404,
500,
600,
700,
999,
];
for (const method of ["compileStreaming", "instantiateStreaming"]) {
for (const status of statuses) {
promise_test(t => {
const response = fetch(`status.py?status=${status}`);
return promise_rejects(t, new TypeError(), WebAssembly[method](response));
}, `Response with status ${status}: ${method}`);
}
}