repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git]
/
dom
/
workers
/
test
/
longThread_worker.js
blob
4096354acac0755b925e27fc03c7803f0a082170
1
/**
2
* Any copyright is dedicated to the Public Domain.
3
* http://creativecommons.org/publicdomain/zero/1.0/
4
*/
5
onmessage = function (event) {
6
switch (event.data) {
7
case "start":
8
for (var i = 0; i < 10000000; i++) {}
9
postMessage("done");
10
break;
11
default:
12
throw "Bad message: " + event.data;
13
}
14
};