Bug 1700051: part 26) Correct typo in comment of `mozInlineSpellWordUtil::BuildSoftTe...
[gecko.git] / dom / promise / tests / test_webassembly_compile_worker_terminate.js
blob5b96c9034bf2a6f5278c90297d45d00b4e12ef2e
1 const sampleURL = "test_webassembly_compile_sample.wasm";
3 function spawnWork() {
4 const N = 50;
5 var arr = [];
6 for (var i = 0; i < N; i++) {
7 arr.push(WebAssembly.compileStreaming(fetch(sampleURL)));
9 Promise.all(arr).then(spawnWork);
12 spawnWork();
13 postMessage("ok");