From 4cf744032dd8a4090cf09935c9f5f6767f943078 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Wed, 29 Sep 2021 20:50:25 +0200 Subject: perf(web/Event): move last class field to constructor (#12265) --- ext/web/02_event.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/web/02_event.js b/ext/web/02_event.js index 340f5e03b..790bb35ea 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -136,6 +136,8 @@ class Event { constructor(type, eventInitDict = {}) { + // TODO(lucacasonato): remove when this interface is spec aligned + this[SymbolToStringTag] = "Event"; this[_canceledFlag] = false; this[_stopPropagationFlag] = false; this[_stopImmediatePropagationFlag] = false; @@ -394,9 +396,6 @@ get timeStamp() { return this[_attributes].timeStamp; } - - // TODO(lucacasonato): remove when this interface is spec aligned - [SymbolToStringTag] = "Event"; } function defineEnumerableProps( -- cgit v1.2.3