-
Notifications
You must be signed in to change notification settings - Fork 676
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
Assertion context_p->token.type != LEXER_RIGHT_PAREN in parser_parse_while_statement_start #3151
Comments
This is a known issue and you can do it with a class statement. The best way to fix this would require a goto, but nobody likes goto. |
(Btw this is not a prescanner issue, probably there for a long time, but we discovered it recently. Funny thing is it should throw syntax error in newer engines to make this worse.) |
@zherczeg Is this issue report a duplicate? We should close this one then using GitHub's duplicate marking mechanism. |
It is not a duplicate. It is a known bug. We discussed it before, but we don't like any solution. We hope somebody will figure out a nice solution for it (no goto, no local variable). |
Ohm, known and discussed by whom and where? Could you link the PR where the alternatives have been discussed/reviewed? |
This patch fixes jerryscript-project#3151. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This patch fixes jerryscript-project#3151 and fixes jerryscript-project#3174. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
This patch fixes #3151 and fixes #3174. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
JerryScript revision
35a3df3
Build platform
Linux-4.15.0-62-generic-x86_64-with-Ubuntu-18.04-bionic
Build steps
Test case
Output
Backtrace
Found by Fuzzinator with grammarinator.
The text was updated successfully, but these errors were encountered: