dom/workers/test/terminate_worker.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:cf3b08753da3
1 /**
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
5 onclose = function() {
6 postMessage("Closed!");
7 }
8
9 onmessage = function(event) {
10 throw "No messages should reach me!";
11 }
12
13 setInterval(function() { postMessage("Still alive!"); }, 100);

mercurial