-
Notifications
You must be signed in to change notification settings - Fork 238
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
Some await
expressions break XS parsing
#1394
Comments
Thanks for reporting this. The issue is real but more obscure than it seems at first. The problem only happens if the (Stage 3) explicit resource management API support is enabled in the XS build with The problem is caused by |
Quick update – we are testing a fix for this. It requires some non-trivial changes to the parser for the additional look-ahead, so we are testing it internally for a bit before pushing it public. |
Fixed. |
Environment: XS 15.5.1, slot 32 bytes, ID 4 bytes
Description
XS fails to parse a ConditionalExpression that starts with an
await
.Steps to Reproduce
Actual behavior
Expected behavior
In statement position with an
Await
parameter (e.g., inside anasync
function),await null ?? notAwaited;
should parse as:;
??
BitwiseORExpression[?In, ?Yield, ?Await]await
UnaryExpression[?Yield, +Await]null
test262 pull request: tc39/test262#4204
The text was updated successfully, but these errors were encountered: