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
Родитель a135136166
Коммит f484fbf7d6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 = {});