-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Correctly print parens around in in for heads
#16630
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
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57311 |
| inForStatementInit: boolean = false; | ||
| enterForStatementInit(val: boolean) { | ||
| const old = this.inForStatementInit; | ||
| if (old === val) return () => {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe return undefined and then use exit?.() on the caller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it better to use consistent types, rather than having polymorphic functions? It's trivial for an engine to optimise an empty function call.
|
Interesting PR! I wanted to test it, but link from @babel-bot fails with:
|
|
CircleCI has been working weirdly in the past few days, thanks for noticing the problem -- I'll see if it something that we need to fix :) |
|
It seems that the CircleCI API no longer allows cross-domain. |
I really wanted to use
using, but we would need an assumption to avoid the try/catch when we know it's not necessary.