mirror of
https://github.com/denoland/deno.git
synced 2025-01-07 06:46:59 -05:00
perf(web/Event): move last class field to constructor (#12265)
This commit is contained in:
parent
55cbd98e1b
commit
91f9931bb5
1 changed files with 2 additions and 3 deletions
|
@ -136,6 +136,8 @@
|
||||||
|
|
||||||
class Event {
|
class Event {
|
||||||
constructor(type, eventInitDict = {}) {
|
constructor(type, eventInitDict = {}) {
|
||||||
|
// TODO(lucacasonato): remove when this interface is spec aligned
|
||||||
|
this[SymbolToStringTag] = "Event";
|
||||||
this[_canceledFlag] = false;
|
this[_canceledFlag] = false;
|
||||||
this[_stopPropagationFlag] = false;
|
this[_stopPropagationFlag] = false;
|
||||||
this[_stopImmediatePropagationFlag] = false;
|
this[_stopImmediatePropagationFlag] = false;
|
||||||
|
@ -394,9 +396,6 @@
|
||||||
get timeStamp() {
|
get timeStamp() {
|
||||||
return this[_attributes].timeStamp;
|
return this[_attributes].timeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(lucacasonato): remove when this interface is spec aligned
|
|
||||||
[SymbolToStringTag] = "Event";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function defineEnumerableProps(
|
function defineEnumerableProps(
|
||||||
|
|
Loading…
Reference in a new issue