1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00

LibWeb: Add ports attribute to MessageEvent and MessageEventInit

Still some FIXMEs left though, as the IDL generator doesn't know what
a FrozenArray is, nor how to properly create a sequence of a Platform
Object.
This commit is contained in:
Andrew Kaster 2023-12-12 13:28:38 -07:00 committed by Andrew Kaster
parent e464d484c4
commit 73697058b0
3 changed files with 21 additions and 0 deletions

View file

@ -14,6 +14,7 @@ interface MessageEvent : Event {
readonly attribute DOMString lastEventId;
readonly attribute MessageEventSource? source;
// FIXME: readonly attribute FrozenArray<MessagePort> ports;
readonly attribute any ports;
};
dictionary MessageEventInit : EventInit {
@ -22,4 +23,5 @@ dictionary MessageEventInit : EventInit {
DOMString lastEventId = "";
MessageEventSource? source = null;
// FIXME: sequence<MessagePort> ports = [];
sequence<object> ports = [];
};