repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1700051: part 26) Correct typo in comment of `mozInlineSpellWordUtil::BuildSoftTe...
[gecko.git]
/
dom
/
promise
/
tests
/
test_webassembly_compile_worker_terminate.js
blob
5b96c9034bf2a6f5278c90297d45d00b4e12ef2e
1
const
sampleURL
=
"test_webassembly_compile_sample.wasm"
;
2
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
)));
8
}
9
Promise
.
all
(
arr
).
then
(
spawnWork
);
10
}
11
12
spawnWork
();
13
postMessage
(
"ok"
);