Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

quic: default options parameter in constructor #152

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/internal/quic/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class QuicSocket extends EventEmitter {
#alpn = undefined;
#stats = undefined;

constructor(options) {
constructor(options = {}) {
const {
// The local IP address or hostname to bind to
address,
Expand Down Expand Up @@ -662,7 +662,7 @@ class QuicSocket extends EventEmitter {

// True if an LRU should be used for add validation
validateAddressLRU,
} = validateQuicSocketOptions(options || {});
} = validateQuicSocketOptions(options);
super();
const socketOptions =
(validateAddress ? QUICSOCKET_OPTIONS_VALIDATE_ADDRESS : 0) |
Expand Down