(type, eventInitDict = {})
| 14522 | } |
| 14523 | #eventInit; |
| 14524 | constructor(type, eventInitDict = {}) { |
| 14525 | if (type === kConstruct) { |
| 14526 | super(arguments[1], arguments[2]); |
| 14527 | webidl.util.markAsUncloneable(this); |
| 14528 | return; |
| 14529 | } |
| 14530 | const prefix = "MessageEvent constructor"; |
| 14531 | webidl.argumentLengthCheck(arguments, 1, prefix); |
| 14532 | type = webidl.converters.DOMString(type, prefix, "type"); |
| 14533 | eventInitDict = webidl.converters.MessageEventInit(eventInitDict, prefix, "eventInitDict"); |
| 14534 | super(type, eventInitDict); |
| 14535 | this.#eventInit = eventInitDict; |
| 14536 | webidl.util.markAsUncloneable(this); |
| 14537 | } |
| 14538 | get data() { |
| 14539 | webidl.brandCheck(this, _MessageEvent); |
| 14540 | return this.#eventInit.data; |
nothing calls this directly
no test coverage detected