LibWeb: Expose MessagePort.postMessage(message, transfer)

The overload resolution is no longer an issue, and we already had this
implemented :^)
This commit is contained in:
Shannon Booth 2024-10-29 01:41:19 +13:00 committed by Andreas Kling
commit 2c5cfbb968
Notes: github-actions[bot] 2024-10-28 22:32:57 +00:00

View file

@ -4,8 +4,7 @@
// https://html.spec.whatwg.org/multipage/web-messaging.html#messageport
[Exposed=(Window,Worker,AudioWorklet), Transferable]
interface MessagePort : EventTarget {
// FIXME: IDL Overload resolution fails here
// FIXME: undefined postMessage(any message, sequence<object> transfer);
undefined postMessage(any message, sequence<object> transfer);
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
undefined start();
undefined close();