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

Fix DCE tests with labels in separate namespace #225

Merged
merged 2 commits into from
Oct 27, 2016
Merged

Fix DCE tests with labels in separate namespace #225

merged 2 commits into from
Oct 27, 2016

Conversation

boopathi
Copy link
Member

This should work on babel version <6.18.0 and >6.18.0 ...


function getLabel(name, _path) {
let label, path = _path;
while (!path.isProgram()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use path.find/path.findParent here right?

Copy link
Member Author

@boopathi boopathi Oct 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes... will change it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. But I want to return the label instead of the parent.

@boopathi boopathi added this to the 0.0.7 milestone Oct 27, 2016
@kangax kangax merged commit d0d1557 into master Oct 27, 2016
@kangax kangax deleted the fix-label-0 branch October 27, 2016 18:50
@hzoo hzoo added bug Confirmed bug Tag: Internal Pull Request changing project internals - code that is NOT published labels Oct 31, 2016
kangax pushed a commit that referenced this pull request Nov 2, 2016
* Fix DCE tests with labels in separate namespace

* Convert to do..while loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug Tag: Internal Pull Request changing project internals - code that is NOT published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants