Implement MessageEvent.InitMessageEvent

InitMessageEvent had to be implemented as required by wpt.
For this few keys of struct `MessageEvent` are now wrapped inside
DomRefCell wrapper.
This commit is contained in:
Kunal Mohan 2019-12-13 11:01:16 +05:30
parent dcdf910a25
commit cb1cb40a51
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
2 changed files with 46 additions and 12 deletions

View file

@ -11,6 +11,17 @@ interface MessageEvent : Event {
readonly attribute DOMString lastEventId;
readonly attribute MessageEventSource? source;
readonly attribute /*FrozenArray<MessagePort>*/any ports;
void initMessageEvent(
DOMString type,
optional boolean bubbles = false,
optional boolean cancelable = false,
optional any data = null,
optional DOMString origin = "",
optional DOMString lastEventId = "",
optional MessageEventSource? source = null,
optional sequence<MessagePort> ports = []
);
};
dictionary MessageEventInit : EventInit {