diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-09-29 20:50:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 20:50:25 +0200 |
commit | 4cf744032dd8a4090cf09935c9f5f6767f943078 (patch) | |
tree | 246467730f3c9202815aa8be364edb06b75209c8 /ext/web/02_event.js | |
parent | 923d9c77865730232094f3788e6b1b2a62243e11 (diff) |
perf(web/Event): move last class field to constructor (#12265)
Diffstat (limited to 'ext/web/02_event.js')
-rw-r--r-- | ext/web/02_event.js | 5 |
1 files 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( |