1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 22:09:02 -05:00

perf(web/Event): move last class field to constructor (#12265)

This commit is contained in:
Aaron O'Mullan 2021-09-29 20:50:25 +02:00 committed by Ryan Dahl
parent 55cbd98e1b
commit 91f9931bb5

View file

@ -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(