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:
Joe Wilm 2015-04-25 21:33:25 -07:00 committed by Keith Yeung
parent dc3f199043
commit 229b176321
13 changed files with 216 additions and 47 deletions

View file

@ -12,7 +12,7 @@ interface AbstractWorker {
// https://html.spec.whatwg.org/multipage/#worker
[Constructor(DOMString scriptURL)/*, Exposed=Window,Worker*/]
interface Worker : EventTarget {
//void terminate();
void terminate();
[Throws]
void postMessage(any message/*, optional sequence<Transferable> transfer*/);