0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -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 GitHub
parent 923d9c7786
commit 4cf744032d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(