MCPcopy Create free account
hub / github.com/nodejs/node / constructor

Method constructor

deps/undici/undici.js:14619–14627  ·  view source on GitHub ↗
(type, eventInitDict)

Source from the content-addressed store, hash-verified

14617 }
14618 #eventInit;
14619 constructor(type, eventInitDict) {
14620 const prefix = "ErrorEvent constructor";
14621 webidl.argumentLengthCheck(arguments, 1, prefix);
14622 super(type, eventInitDict);
14623 webidl.util.markAsUncloneable(this);
14624 type = webidl.converters.DOMString(type, prefix, "type");
14625 eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {});
14626 this.#eventInit = eventInitDict;
14627 }
14628 get message() {
14629 webidl.brandCheck(this, _ErrorEvent);
14630 return this.#eventInit.message;

Callers

nothing calls this directly

Calls 3

argumentLengthCheckMethod · 0.80
markAsUncloneableMethod · 0.80
DOMStringMethod · 0.80

Tested by

no test coverage detected