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

jsparser: support Annex B in ECMA-262 #15

Open
masnagam opened this issue Sep 23, 2023 · 1 comment
Open

jsparser: support Annex B in ECMA-262 #15

masnagam opened this issue Sep 23, 2023 · 1 comment

Comments

@masnagam
Copy link
Member

jsparser fails at the following location:

...;else function openbox(){...

In the ES2022 grammar, Statement doesn't cover FunctionDeclaration and ExpressionStatement doesn't contain a production rule started from the function token.

However, major browser engines (Gecko and Chromium) can parse this js file without any parse errors.

@masnagam
Copy link
Member Author

masnagam commented Oct 3, 2023

@masnagam masnagam changed the title Parsing https://cdnjs.cloudflare.com/ajax/libs/merger/0.28.4/bundles/function.main.js fails jsparser: support Annex B in ECMA-262 Jan 19, 2024
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

No branches or pull requests

1 participant