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

Unexpected SyntaxError by numerical getter/setters in loops #1829

Closed
renatahodovan opened this issue May 17, 2017 · 0 comments
Closed

Unexpected SyntaxError by numerical getter/setters in loops #1829

renatahodovan opened this issue May 17, 2017 · 0 comments
Labels
bug Undesired behaviour parser Related to the JavaScript parser

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 31cd3b8
Build command: ./tools/build.py --clean --debug --error-messages=on
OS:
Ubuntu 16.04.2 LTS
Test case:
for ({get 10() {} };;)
    break;
Description:

The test case above triggers a SyntaxError exception with the following message:

for ({get 10() {} };;)
~~~~~~~~~~^
Script Error: SyntaxError: Expected argument list. [line: 1, column: 11]

Numerical getters/setters are allowed by the standard and JerryScript supports them too. It seems that the above glitch only happens if these getter/setters are placed in loops.

Found by Fuzzinator with Grammarinator

@LaszloLango LaszloLango added bug Undesired behaviour parser Related to the JavaScript parser labels May 17, 2017
zherczeg added a commit to zherczeg/jerryscript that referenced this issue May 19, 2017
zherczeg added a commit that referenced this issue May 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour parser Related to the JavaScript parser
Projects
None yet
Development

No branches or pull requests

2 participants