We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
The following statement cannot be parsed in Meriyah, while both Acorn and Esprima parses it without problems.
{ do { } while (false) false }
Here is the result from Acorn which should be returned:
{ "type": "Program", "start": 0, "end": 30, "body": [ { "type": "BlockStatement", "start": 0, "end": 30, "body": [ { "type": "DoWhileStatement", "start": 2, "end": 22, "body": { "type": "BlockStatement", "start": 5, "end": 8, "body": [] }, "test": { "type": "Literal", "start": 16, "end": 21, "value": false, "raw": "false" } }, { "type": "ExpressionStatement", "start": 23, "end": 28, "expression": { "type": "Literal", "start": 23, "end": 28, "value": false, "raw": "false" } } ] } ], "sourceType": "module" }
-Thomas
The text was updated successfully, but these errors were encountered:
@KFlash sorry, we didn't force it. I will add the missing implementation for the spec.
The previous token is ) and the inserted semicolon would then be parsed as the terminating semicolon of a do-while statement (13.7.2).
Sorry, something went wrong.
faa96bb
No branches or pull requests
Hi,
The following statement cannot be parsed in Meriyah, while both Acorn and Esprima parses it without problems.
{ do { } while (false) false }
Here is the result from Acorn which should be returned:
-Thomas
The text was updated successfully, but these errors were encountered: