X Tutup
Skip to content

net: support passing null to listen()#14221

Merged
cjihrig merged 1 commit intonodejs:masterfrom
cjihrig:14205
Sep 22, 2017
Merged

net: support passing null to listen()#14221
cjihrig merged 1 commit intonodejs:masterfrom
cjihrig:14205

Conversation

@cjihrig
Copy link
Copy Markdown
Contributor

@cjihrig cjihrig commented Jul 13, 2017

This commit fixes a regression around the handling of null as the port passed to Server#listen(). With this commit, null, undefined, and 0 have the same behavior, which was the case in Node 4.

Fixes: #14205

R= @sam-github @evanlucas

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

net

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

undefined port should trigger a RangeError when launching a server
X Tutup