Skip to content

Remove unnecessary normalization - #5175

Open
jugglinmike wants to merge 1 commit into
tc39:mainfrom
jugglinmike:remove-unnecessary-normalization
Open

jugglinmike wants to merge 1 commit into
tc39:mainfrom
jugglinmike:remove-unnecessary-normalization

Conversation

@jugglinmike

Copy link
Copy Markdown
Contributor

Test legibility is improved when the values expressed in the test files match the values being asserted. Because test authors have control over the value in this case (and because the affected tests do not require normalization today), the normalization logic may be safely removed.

Refactor the normalization as an enforcement of the contract in order to alert future contributors of that contract and assist them in honoring it.

@jugglinmike
jugglinmike requested a review from a team as a code owner November 10, 2026 01:04

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

needs a rebase tho

Test legibility is improved when the values expressed in the test files
match the values being asserted. Because test authors have control over
the value in this case (and because the affected tests do not require
normalization today), the normalization logic may be safely removed.

Refactor the normalization as an enforcement of the contract in order to
alert future contributors of that contract and assist them in honoring
it.
@ljharb
ljharb force-pushed the remove-unnecessary-normalization branch from 6c1e74f to 320b4d7 Compare November 10, 2026 01:26
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.

2 participants