Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Commits on Dec 28, 2022

  1. perf_hooks: fix checking range of options.figures in createHistogram

    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 committed Dec 28, 2022
    Copy the full SHA
    01829a7 View commit details
    Browse the repository at this point in the history