Skip to content

Conversation

@dnlup
Copy link
Owner

@dnlup dnlup commented Feb 17, 2025

Fix "the-value-of-val-is-out-of-range" error.

Closes #627 .

@dnlup dnlup linked an issue Feb 17, 2025 that may be closed by this pull request
lib/gc.js Outdated
* https://github.com/nodejs/node/blob/cdad3d8fe5f468aec6549fd59db73a3bfe063e3c/lib/internal/histogram.js#L283-L284
*/
this[kHistogram].record(Math.trunc(ns))
const val = Math.floor(ns)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrewpuch Here we don't truncate anymore, but didn't see any difference, do you see any issues with it?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, there's round not floor I have forced pushed.

Fix "the-value-of-val-is-out-of-range" error.
@dnlup dnlup force-pushed the 627-the-value-of-val-is-out-of-range branch from f5fad20 to c928539 Compare February 17, 2025 10:14
@andrewpuch
Copy link

LGTM

@dnlup dnlup merged commit f612783 into next Feb 18, 2025
11 checks passed
@dnlup dnlup deleted the 627-the-value-of-val-is-out-of-range branch February 18, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The value of "val" is out of range.

3 participants