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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: async(x?) should throw #13446
Comments
Hey @tony-go! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
We should also check that just |
For reference, Babel does not throw on unambiguous call expression when either asyn(c?) REPL. |
Once #13419 is merged I switch to this one ^^ |
Hi @JLHwung and @nicolo-ribaudo 馃憢 It's a bit funny but is seems that on the version 7.14.5 it works 馃槅 I also check that it doesn't throw with typescript and flow. But I let you double check. |
@JLHwung Maybe we fix it in our previous fix... |
Well, it should throw when Flow or TS are enabled 馃槢 |
Can confirm it is fixed in #13419 . Because the checking logic was moved to
|
Oh we should still add a test then. |
I'll add it so :) |
馃捇
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
REPL
Configuration file name
No response
Configuration
No response
Current and expected behavior
Current: the input is parsed correctly
Expected: it should throw a
Unexpected end of input
(with the token position of course)Environment
7.14.4
1.8
10.3
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: