mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
Adds support for terminating DOM workers. A closing flag was added to WorkerGlobalScope per the spec. Rebased #6652, with some comments addressed. Fixes #4427. Source-Repo: https://github.com/servo/servo Source-Revision: c0aa049b0aaf39df979234dff1ed01ff5d9aa5c5
7 lines
122 B
JavaScript
7 lines
122 B
JavaScript
var prev = Date.now()
|
|
setInterval(function () {
|
|
var now = Date.now();
|
|
postMessage(now - prev);
|
|
prev = now;
|
|
}, 500);
|