forked from mirrors/gecko-dev
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35951 --HG-- extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
13 lines
267 B
JavaScript
13 lines
267 B
JavaScript
/**
|
|
* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
|
*/
|
|
var counter = 0;
|
|
|
|
var interval = setInterval(function() {
|
|
postMessage(++counter);
|
|
}, 100);
|
|
|
|
onmessage = function(event) {
|
|
clearInterval(interval);
|
|
};
|