Skip to content

Add test for Number.MIN_VALUE's value#5025

Merged
ptomato merged 1 commit intotc39:mainfrom
Sharktheone:number-min-value
Apr 21, 2026
Merged

Add test for Number.MIN_VALUE's value#5025
ptomato merged 1 commit intotc39:mainfrom
Sharktheone:number-min-value

Conversation

@Sharktheone
Copy link
Copy Markdown
Member

There where no tests in place to actually test what Number.MIN_VALUE is. The testsuite would happily accept any value, negative or high positive ones.

I dividing the Number.MIN_VALUE by 2 and check if it is 0 as the spec mentions denormalized values which we need to account for here.

I checked that the test passes in Yavashark (my own JS Engine) and from looking at all other Engines they should pass this new test too.

@Sharktheone Sharktheone requested a review from a team as a code owner April 14, 2026 20:23
@Sharktheone
Copy link
Copy Markdown
Member Author

What is missing here to get this PR merged? (Mainly so I can tick it off in my todo-list)

Same for my 2 other PRs (#5026 and #5027)

@ptomato
Copy link
Copy Markdown
Contributor

ptomato commented Apr 21, 2026

For #5027, someone will need to find time to review it, as it isn't simple enough to be done in a short time like the MAX_VALUE and MIN_VALUE tests.

@ptomato ptomato merged commit d5e73fc into tc39:main Apr 21, 2026
14 checks passed
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.

3 participants