Skip to content

lib: refactor isLegalPort, move to validators - #31851

Closed
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:refactor-islegalport
Closed

lib: refactor isLegalPort, move to validators#31851
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:refactor-islegalport

Conversation

@jasnell

Copy link
Copy Markdown
Member

isLegalPort was used multiple places in the same way -- to validate
the port and throw if necessary. Moved into internal/validators.

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

@nodejs-github-botnodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Feb 18, 2020
Comment threadlib/internal/validators.js Outdated
Comment threadlib/dgram.js Outdated
Comment threadlib/internal/validators.js Outdated
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@jasnelljasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 5, 2020
isLegalPort was used multiple places in the same way -- to validate
the port and throw if necessary. Moved into internal/validators.
@jasnell
jasnellforce-pushed the refactor-islegalport branch from a100a54 to 5c32715CompareMarch 5, 2020 19:51
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in b023d61

@MylesBorins

Copy link
Copy Markdown
Contributor

This doesn't land cleanly on v13.x

Should it be backported?

@MylesBorins

Copy link
Copy Markdown
Contributor

after some other backports landed this now lands cleanly!

@MylesBorinsMylesBorins mentioned this pull request Mar 10, 2020
@targostargos added backport-blocked-v12.x and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-blocked-v12.x labels Apr 20, 2020
@targostargos mentioned this pull request May 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / srcIssues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@jasnell@nodejs-github-bot@MylesBorins@richardlau@BridgeAR@targos