mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
19 lines
496 B
Text
19 lines
496 B
Text
#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 = "";
|
|
};
|