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

Fix some numeric parsing related issues #232

Merged
merged 6 commits into from
Apr 12, 2022

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Mar 27, 2022

First tried to fix some numeric separator issues but started to be bit of yak shaving.

Found out that the tolerant logic in options was wrong, tests should be run with Tolerant = false to enforce proper parsing rules. Changed that and did required fixes. Options are still Tolerant = true by default as it would be a breaking change to change that.

Some errors are easiest to handle on Scanner level so supplied more information to Scanner for it to know with error should be thrown (are we in strict mode or not, are we allowing escaped identifier names like for object properties which is allowed).

Deleted couple old test cases which are not meant to throw based on my nodejs testing.

allow-list.txt should be a good indicator for changes, almost 2000 lines removed, some lines added like top level await (which hasn't been implemented).

Copy link
Owner

@sebastienros sebastienros left a comment

Choose a reason for hiding this comment

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

the allow-list is surprisingly different

@lahma lahma force-pushed the numeric-parsing-fixes branch 2 times, most recently from 93cde0c to 1aa83b4 Compare April 12, 2022 15:40
@lahma lahma merged commit d73f2c6 into sebastienros:main Apr 12, 2022
@lahma lahma deleted the numeric-parsing-fixes branch April 12, 2022 15:48
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