Skip to content

Editorial: Refactor parseInt into more cleanly-separated phases#3841

Open
gibson042 wants to merge 9 commits intotc39:mainfrom
gibson042:2026-04-refactor-parseint
Open

Editorial: Refactor parseInt into more cleanly-separated phases#3841
gibson042 wants to merge 9 commits intotc39:mainfrom
gibson042:2026-04-refactor-parseint

Conversation

@gibson042
Copy link
Copy Markdown
Member

When double-checking how parseInt treats empty-string input, I found its algorithm to be excessively convoluted.

@github-actions
Copy link
Copy Markdown

The rendered spec preview for this PR is available as a single page at https://tc39.es/ecma262/pr/3841 and as multiple pages at https://tc39.es/ecma262/pr/3841/multipage .

Comment thread spec.html Outdated
Copy link
Copy Markdown
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

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

LGTM otherwise. You're right, this is a lot better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants