MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

deps/undici/undici.js:14592–14600  ·  view source on GitHub ↗
(type, eventInitDict = {})

Source from the content-addressed store, hash-verified

14590 }
14591 #eventInit;
14592 constructor(type, eventInitDict = {}) {
14593 const prefix = "CloseEvent constructor";
14594 webidl.argumentLengthCheck(arguments, 1, prefix);
14595 type = webidl.converters.DOMString(type, prefix, "type");
14596 eventInitDict = webidl.converters.CloseEventInit(eventInitDict);
14597 super(type, eventInitDict);
14598 this.#eventInit = eventInitDict;
14599 webidl.util.markAsUncloneable(this);
14600 }
14601 get wasClean() {
14602 webidl.brandCheck(this, _CloseEvent);
14603 return this.#eventInit.wasClean;

Callers

nothing calls this directly

Calls 3

argumentLengthCheckMethod · 0.80
DOMStringMethod · 0.80
markAsUncloneableMethod · 0.80

Tested by

no test coverage detected