From c82b52e4968ac214e0d6290fdda413ff05cc48da Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 29 Oct 2024 01:41:19 +1300 Subject: [PATCH] LibWeb: Expose MessagePort.postMessage(message, transfer) The overload resolution is no longer an issue, and we already had this implemented :^) (cherry picked from commit 2c5cfbb968113a5630a8cd580bb100852aadeb95) --- Userland/Libraries/LibWeb/HTML/MessagePort.idl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.idl b/Userland/Libraries/LibWeb/HTML/MessagePort.idl index 14a70e06337742..e7f5d08506563a 100644 --- a/Userland/Libraries/LibWeb/HTML/MessagePort.idl +++ b/Userland/Libraries/LibWeb/HTML/MessagePort.idl @@ -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 transfer); + undefined postMessage(any message, sequence transfer); undefined postMessage(any message, optional StructuredSerializeOptions options = {}); undefined start(); undefined close();