mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
9
tests/html/worker/worker_post_block.js
Normal file
9
tests/html/worker/worker_post_block.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
var prev = Date.now()
|
||||
for (var i=0; true; i++) {
|
||||
|
||||
if (i % 100000000 == 0) {
|
||||
var now = Date.now();
|
||||
postMessage(now - prev);
|
||||
prev = now;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue