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

Reimplement Unit Group with different approach #183

Merged
merged 3 commits into from
Feb 4, 2025
Merged

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Jan 25, 2025

This PR reimplements the UnitGroup enum with a different approach to validation. Previously this was implemented, but it broke quite a few tests in Boa. I think that was partially due to a flawed implementation and a host of bugs that were previously present.

Those appear to have all been fixed with recent bug changes, and this reimplementation is primarily to address the broken tests in boa-dev/boa#4142 that require unit groups to be implemented.

The tests that the unit groups specifically address specifically are tests like: largestunit-invalid-string.js.

@nekevss nekevss added the C-internal Internal library improvements label Jan 25, 2025
Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Looks good!

@nekevss nekevss merged commit 50003f0 into main Feb 4, 2025
7 checks passed
@nekevss nekevss deleted the reimpl-unit-groups branch February 4, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-internal Internal library improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants