tenfourfox/dom/workers/test/bug1104064_worker.js

11 lines
188 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
onmessage = function() {
var counter = 0;
var id = setInterval(function() {
++counter;
if (counter == 2) {
clearInterval(id);
postMessage('done');
}
}, 0);
}