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
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git]
/
dom
/
workers
/
test
/
throwingOnerror_worker.js
blob
47b727f56a24f4ac87365a8b457fbe5bd3b9cc25
1
/**
2
* Any copyright is dedicated to the Public Domain.
3
* http://creativecommons.org/publicdomain/zero/1.0/
4
*/
5
onerror = function (event) {
6
throw "bar";
7
};
8
9
var count = 0;
10
onmessage = function (event) {
11
if (!count++) {
12
throw "foo";
13
}
14
postMessage("");
15
};