throwingOnerror_worker.js (268B)
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 };