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

JavaScript parser: fix parsing of labels #1442

Merged
merged 2 commits into from
Mar 31, 2023
Merged

JavaScript parser: fix parsing of labels #1442

merged 2 commits into from
Mar 31, 2023

Conversation

vouillon
Copy link
Member

Identifiers such as 'of' and 'async' are valid labels.
Fixes #1440.

@hhugo
Copy link
Member

hhugo commented Mar 30, 2023

Maybe add a regression test in https://github.com/ocsigen/js_of_ocaml/blob/master/compiler/tests-compiler/js_parser_printer.ml

@hhugo
Copy link
Member

hhugo commented Mar 30, 2023

@phated, would you have time to give this a try and report other blockers ?

@hhugo hhugo merged commit 2b51785 into master Mar 31, 2023
13 of 14 checks passed
@hhugo hhugo deleted the label-parsing branch March 31, 2023 12:16
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.

[BUG] New js parser fails to parse some js that old parser supported
2 participants