blob: 4f920533818b434f23e4a02ca85b02cd60ebbc8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
[Exposed=(Window)]
interface Worker : EventTarget {
constructor(DOMString scriptURL, optional WorkerOptions options = {});
undefined terminate();
undefined postMessage(any message, optional any transfer);
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};
dictionary WorkerOptions {
USVString type = "classic";
USVString credentials = "same-origin";
DOMString name = "";
};
|