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

Minor parser issues that incorrectly pass tests #437

Open
adams85 opened this issue Feb 19, 2024 · 0 comments
Open

Minor parser issues that incorrectly pass tests #437

adams85 opened this issue Feb 19, 2024 · 0 comments
Labels

Comments

@adams85
Copy link
Collaborator

adams85 commented Feb 19, 2024

Version used

v3.0.4

Describe the bug

There are some broken test cases in the Esprima test suite:

False negatives (cases that produce an error while they shouldn't):

  • ES6/identifier/invalid_expression_await.module.js
  • expression/primary/literal/regular-expression/migrated_0006.source.js

False positive (cases that don't produce an error while they should):

  • es2017/async/functions/async-if.js
  • es2017/async/functions/async-if-await.js
  • ES6/binding-pattern/array-pattern/for-let-let.js
  • ES6/binding-pattern/object-pattern/for-let-let.js
  • ES6/export-declaration/export-named-keyword-as-specifier.js
  • ES6/export-declaration/export-named-keyword-specifier.js
  • ES6/identifier/module_await.js (illegal since ES2022)
  • ES6/template-literals/escape-sequences.source.js (see the result of eval('(s => s.raw[0])`\\n\\r\\b\\v\\t\\f\\\n\\\r\n`'))
  • ES6/template-literals/line-terminators.source.js (\r\n is normalized to \n in raw strings as well)
  • ES6/yield/yield-generator-arrow-default.js
  • ES6/yield/yield-generator-default-parameter.js
  • statement/iteration/unterminated-do-while.json
  • statement/with/unterminated-with.js
@adams85 adams85 added the bug label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant