Skip to content

Minor parser issues that incorrectly pass tests #437

@adams85

Description

@adams85

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions