Skip to content

lib: rename validateSafeInteger to validateInteger - #29184

Merged
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:ints
Aug 19, 2019
Merged

lib: rename validateSafeInteger to validateInteger#29184
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:ints

Conversation

@cjihrig

Copy link
Copy Markdown
Contributor

validateInteger() was renamed to validateSafeInteger() in #26572. However, this function also works with unsafe integers. This commit restores the old name, and adds some basic tests.

Refs: #26572

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 crypto Issues and PRs related to the crypto subsystem. fs Issues and PRs related to the fs subsystem / file system. labels Aug 17, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ZYSzysZYSzys added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 18, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

nodejs-github-bot commented Aug 19, 2019

Copy link
Copy Markdown
Collaborator

validateInteger() was renamed to validateSafeInteger() in
nodejs#26572. However, this
function also works with unsafe integers. This commit restores
the old name, and adds some basic tests.
PR-URL: nodejs#29184
Refs: nodejs#26572
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.cryptoIssues and PRs related to the crypto subsystem.fsIssues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@cjihrig@nodejs-github-bot@jasnell@Trott@lpinca@trivikr@ZYSzys@targos