Bug 1848125 - Make MessageEvent a ProbablyShortLivingWrapper. r=smaug

It is expected that those objects are not held unto, this allows minor GCs to
usually collect the wrapper.

Differential Revision: https://phabricator.services.mozilla.com/D186435
This commit is contained in:
Paul Adenot 2023-09-26 08:41:08 +00:00
parent a135136166
commit f484fbf7d6

View File

@ -7,7 +7,7 @@
* https://html.spec.whatwg.org/#messageevent
*/
[Exposed=(Window,Worker,AudioWorklet)]
[Exposed=(Window,Worker,AudioWorklet), ProbablyShortLivingWrapper]
interface MessageEvent : Event {
constructor(DOMString type, optional MessageEventInit eventInitDict = {});