We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
super()
1 parent 80d5f32 commit 5a01962Copy full SHA for 5a01962
1 file changed
lib/web/websocket/events.js
@@ -143,13 +143,13 @@ class ErrorEvent extends Event {
143
const prefix = 'ErrorEvent constructor'
144
webidl.argumentLengthCheck(arguments, 1, prefix)
145
146
- super(type, eventInitDict)
147
- webidl.util.markAsUncloneable(this)
148
-
149
type = webidl.converters.DOMString(type, prefix, 'type')
150
eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})
151
+ super(type, eventInitDict)
+
152
this.#eventInit = eventInitDict
+ webidl.util.markAsUncloneable(this)
153
}
154
155
get message () {
0 commit comments