dom/workers/test/throwingOnerror_worker.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:128e5945c253
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 };

mercurial