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.
1 parent 1cc6de0 commit ce19b4bCopy full SHA for ce19b4b
lib/internal/quic/core.js
@@ -621,7 +621,7 @@ class QuicSocket extends EventEmitter {
621
#alpn = undefined;
622
#stats = undefined;
623
624
- constructor(options) {
+ constructor(options = {}) {
625
const {
626
// The local IP address or hostname to bind to
627
address,
@@ -662,7 +662,7 @@ class QuicSocket extends EventEmitter {
662
663
// True if an LRU should be used for add validation
664
validateAddressLRU,
665
- } = validateQuicSocketOptions(options || {});
+ } = validateQuicSocketOptions(options);
666
super();
667
const socketOptions =
668
(validateAddress ? QUICSOCKET_OPTIONS_VALIDATE_ADDRESS : 0) |
0 commit comments