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:
parent
55cbd98e1b
commit
91f9931bb5
1 changed files with 2 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue