mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement Worker#terminate() (fixes #4427).
Adds support for terminating DOM workers. A closing flag was added to WorkerGlobalScope per the spec.
This commit is contained in:
parent
dc3f199043
commit
229b176321
13 changed files with 216 additions and 47 deletions
6
tests/html/worker/worker_post_interval.js
Normal file
6
tests/html/worker/worker_post_interval.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
var prev = Date.now()
|
||||
setInterval(function () {
|
||||
var now = Date.now();
|
||||
postMessage(now - prev);
|
||||
prev = now;
|
||||
}, 500);
|
Loading…
Add table
Add a link
Reference in a new issue