You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expressions like new a.B().call() are parsed incorrectly as new (singleExpression a.B().call) arguments
I tried to reorder the productions (similarly to #2178), but without success. Adding a semantic predicate fails when generating the parser with "The following sets of rules are mutually left-recursive [singleExpression]".
It seems to me that the only way is to break down the single expression such as the Arguments/call expression cannot follow the new operator: https://262.ecma-international.org/5.1/#sec-11.2
But this is a big change in the grammar...
The text was updated successfully, but these errors were encountered:
Expressions like
new a.B().call()
are parsed incorrectly asnew (singleExpression a.B().call) arguments
I tried to reorder the productions (similarly to #2178), but without success. Adding a semantic predicate fails when generating the parser with "The following sets of rules are mutually left-recursive [singleExpression]".
It seems to me that the only way is to break down the single expression such as the Arguments/call expression cannot follow the new operator: https://262.ecma-international.org/5.1/#sec-11.2
But this is a big change in the grammar...
The text was updated successfully, but these errors were encountered: