FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

perf_hooks: fix checking range of `options.figures` in createHistogram by deokjinkim · Pull Request #45999 · nodejs/node · GitHub

/ node Public

perf_hooks: fix checking range of options.figures in createHistogram - #45999

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
deokjinkim:221228_fix_check_range_figures
Jan 10, 2023
Merged

perf_hooks: fix checking range of options.figures in createHistogram#45999
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
deokjinkim:221228_fix_check_range_figures

Conversation

Copy link
Copy Markdown
Contributor

For options.figures, number between 1 and 5 is allowed. So need to use validateInteger to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Dec 28, 2022
For `options.figures`, number between 1 and 5 is allowed. So need
to use `validateInteger` to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions
deokjinkim force-pushed the 221228_fix_check_range_figures branch from e239c68 to 01829a7 Compare December 28, 2022 14:56

deokjinkim commented Dec 28, 2022
edited
Loading

Copy link
Copy Markdown
Contributor Author

For reference, we can't set max value we want(ex. 5) when we use validateUint32 because max value is fixed as 4_294_967_295 in validateUint32.

aduh95 added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 28, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 28, 2022

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Contributor Author

@aduh95 Could you please land this PR because this PR is created 1 week ago?

lpinca added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 10, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 10, 2023
nodejs-github-bot merged commit 8282e65 into nodejs:main Jan 10, 2023

Copy link
Copy Markdown
Collaborator

Landed in 8282e65

RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Jan 17, 2023
For `options.figures`, number between 1 and 5 is allowed. So need
to use `validateInteger` to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions
PR-URL: nodejs#45999
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Jan 20, 2023
For `options.figures`, number between 1 and 5 is allowed. So need
to use `validateInteger` to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions
PR-URL: #45999
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
RafaelGSS mentioned this pull request Jan 20, 2023
juanarbol pushed a commit that referenced this pull request Jan 26, 2023
For `options.figures`, number between 1 and 5 is allowed. So need
to use `validateInteger` to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions
PR-URL: #45999
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
juanarbol mentioned this pull request Jan 28, 2023
juanarbol pushed a commit that referenced this pull request Jan 31, 2023
For `options.figures`, number between 1 and 5 is allowed. So need
to use `validateInteger` to limit max as 5.

Refs: https://github.com/nodejs/node/blob/main/doc/api/perf_hooks.md#perf_hookscreatehistogramoptions
PR-URL: #45999
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL