-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Acorn can parse the following Test262 test cases, but Meriyah cannot:
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/import/import-attributes/json-named-bindings.js
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/statements/await-using/throws-if-initializer-not-object.js
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/statements/class/elements/syntax/valid/grammar-field-named-get-followed-by-generator-asi.js
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/statements/class/elements/syntax/valid/grammar-field-named-set-followed-by-generator-asi.js
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/statements/for-await-of/head-lhs-async.js
- https://github.com/tc39/test262/blob/823f4cfd2004cf410bc0344304e22e12d243e955/test/language/statements/using/throws-if-initializer-not-object.js
This is parsing with the following options:
meriyah.parse(code, {
module: isModule,
impliedStrict: isModule,
ranges: true,
raw: true,
preserveParens: false,
globalReturn: true,
webcompat: true,
next: true,
});
acorn.Parser.parse(code, {
ecmaVersion: 'latest',
sourceType: isModule ? 'module' : 'script',
preserveParens: false,
allowHashBang: true,
allowReturnOutsideFunction: true,
});isModule depends on whether module appears in flags in the YAML header comment at top of each test case file.
Metadata
Metadata
Assignees
Labels
No labels