diff --git a/ext/web/02_event.js b/ext/web/02_event.js index f54e3d8a3e..340f5e03ba 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -135,16 +135,15 @@ const _path = Symbol("[[path]]"); class Event { - [_attributes] = {}; - [_canceledFlag] = false; - [_stopPropagationFlag] = false; - [_stopImmediatePropagationFlag] = false; - [_inPassiveListener] = false; - [_dispatched] = false; - [_isTrusted] = false; - [_path] = []; - constructor(type, eventInitDict = {}) { + this[_canceledFlag] = false; + this[_stopPropagationFlag] = false; + this[_stopImmediatePropagationFlag] = false; + this[_inPassiveListener] = false; + this[_dispatched] = false; + this[_isTrusted] = false; + this[_path] = []; + webidl.requiredArguments(arguments.length, 1, { prefix: "Failed to construct 'Event'", });