Skip to content

Commit

Permalink
LibWeb: Expose MessagePort.postMessage(message, transfer)
Browse files Browse the repository at this point in the history
The overload resolution is no longer an issue, and we already had this
implemented :^)

(cherry picked from commit 2c5cfbb968113a5630a8cd580bb100852aadeb95)
  • Loading branch information
shannonbooth authored and nico committed Nov 17, 2024
1 parent 71c0115 commit c82b52e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Userland/Libraries/LibWeb/HTML/MessagePort.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c82b52e

Please sign in to comment.