LibWeb/HTML: Port Window.structuredClone() to IDL

This commit is contained in:
Linus Groh 2023-03-07 18:21:49 +00:00
commit 129ab02470
Notes: sideshowbarker 2024-07-17 03:27:40 +09:00
8 changed files with 42 additions and 25 deletions

View file

@ -4,12 +4,15 @@
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
[Exposed=(Window,Worker,AudioWorklet), Transferable]
interface MessagePort : EventTarget {
undefined postMessage(any message);
undefined start();
undefined close();
// event handlers
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
};
dictionary StructuredSerializeOptions {
sequence<object> transfer = [];
};