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
{{ message }}
This repository has been archived by the owner on May 19, 2018. It is now read-only.
Hey @tibdex! 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.
Thanks @hzoo, of course no hurry :) ! I just thought that since the issue is impacting the latest release of prettier lot of people were going to stumble into it. So I just went ahead and created a ticket here and on the prettier repo so that people also experiencing it can see that there is already an issue for it.
FYI I used git bisect and the issue appeared in 32eabf6.
Putting the code back as it was before #405 fixes the parsing error but seems to put back the code in a incorrect state if #404 is legit. Indeed, I added console.log statements before this.state.context.push(ct.parenExpression); and this.state.context.pop(); and here is the sequence:
push // 1
push // 2
pop // 1
push // 2
pop // 1
push // 2
pop // 1, missing a "pop" if the counter is expected to go back to 0, but is it ? ...
I found this while using
prettier
1.1.0.Input Code
Babylon/Babel Configuration
Expected Behavior
The code is valid and
babylon
should be able to parse it.Current Behavior
babylon
throwsUnexpected token (2:0)
. You can see it live on the prettier playground.Removing the
jsx
plugin and only enabling theflow
one makesbabylon
able to parse the code correctly.Your Environment
The text was updated successfully, but these errors were encountered: