mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
15 lines
292 B
JavaScript
15 lines
292 B
JavaScript
/**
|
|
* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
|
*/
|
|
var counter = 0;
|
|
|
|
var interval = setInterval(function() {
|
|
dump("WorkerAlive\n");
|
|
postMessage(++counter);
|
|
}, 100);
|
|
|
|
onmessage = function(event) {
|
|
clearInterval(interval);
|
|
}
|