Skip to content
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

If/else block fails inside do expression (T7267) #4224

Closed
babel-bot opened this issue Apr 6, 2016 · 4 comments · Fixed by #5693
Closed

If/else block fails inside do expression (T7267) #4224

babel-bot opened this issue Apr 6, 2016 · 4 comments · Fixed by #5693
Labels
area: experimental Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects

Comments

@babel-bot
Copy link
Collaborator

Issue originally made by @kolodny

Bug information

  • Babel version: 6.6.5
  • Node version: 5.5.0
  • npm version: 3.3.12

Options

{ "presets": ["es2015", "stage-0"] }

Input code

const a = do { if (true) while(false) 22 }

Description

Here's a quick way to replicate

cd $(mktemp -d -t tmp)
npm init -y > /dev/null
npm i -D babel-core babel-cli babel-preset-es2015 babel-preset-stage-0 > /dev/null
echo '{ "presets": ["es2015", "stage-0"] }' > .babelrc
echo "const a = do { while(false) 22 }" > works.js
echo "const a = do { if (true) while(false) 22 }" > breaks.js

./node_modules/.bin/babel works.js && echo works
./node_modules/.bin/babel breaks.js

@motiz88 motiz88 changed the title do expression fails inside an if and else block (T7267) If/else block fails inside do expression (T7267) Oct 16, 2016
@danez danez added the i: bug label Oct 17, 2016
@jridgewell
Copy link
Member

Fixed by #5693.

@hzoo
Copy link
Member

hzoo commented May 19, 2017

Weird I thought I invited you already, you want to be a collab so you can close/label/merge and all that?

@jridgewell
Copy link
Member

😁

@hzoo
Copy link
Member

hzoo commented May 20, 2017

Let me know if you have more questions about how we do things on here/slack? Dono if you ever check that, also adding to https://github.com/babel/babel/wiki/Maintaining-Babel and contributing.md

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: experimental Has PR i: bug outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
No open projects
@motiz88
Seemingly abandoned features
Development

Successfully merging a pull request may close this issue.

4 participants