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

Handle ClassDeclaration binding #383

Merged
merged 3 commits into from Feb 16, 2017
Merged

Handle ClassDeclaration binding #383

merged 3 commits into from Feb 16, 2017

Conversation

boopathi
Copy link
Member

@boopathi boopathi commented Jan 19, 2017

This is happening because ClassDeclarations have bindings in two scopes where as FunctionDeclarations have bindings only in the scope where it is defined.

Edit: It's not a babel bug.

Edit 2: Also changes the way topLevel is handled - removes hasOwnBinding & binding.renamed hacks

@boopathi boopathi added this to Mangler PRs in Mangler Jan 29, 2017
@boopathi boopathi mentioned this pull request Feb 12, 2017
8 tasks
+ (Fixes #365)

This is happening because ClassDeclarations have bindings in two scopes where as FunctionDeclarations have bindings only in the scope where it is defined.

+ babel bug: babel/babel#5156
@boopathi boopathi changed the title Handle ClassDeclaration binding bug in babel Handle ClassDeclaration binding Feb 12, 2017
@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label Feb 13, 2017
@boopathi boopathi merged commit e836e60 into master Feb 16, 2017
@boopathi boopathi deleted the class-decl-0 branch February 16, 2017 20:41
@boopathi boopathi moved this from Mangler PRs to Done in Mangler Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tag: Bug Fix Pull Request fixes a bug
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant