mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
20 lines
512 B
Plaintext
20 lines
512 B
Plaintext
#import <DOM/EventTarget.idl>
|
|
#import <DOM/EventHandler.idl>
|
|
|
|
[Exposed=(Window), UseNewAKString]
|
|
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 = "";
|
|
};
|