This repository has been archived by the owner. It is now read-only.

Allow this.state.clone() when parsing decorators #262

Merged
merged 1 commit into from Jan 2, 2017

Conversation

Projects
None yet
2 participants
@rattrayalex
Copy link
Contributor

rattrayalex commented Dec 20, 2016

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? yes
Tests added/pass? none added, existing pass.
Fixed tickets --
License MIT

Adding the line this.state = this.state.clone(); in a parser plugin
(specifically, in my case parseExprAtom)
would break decorators.

This change fixes that.

Allow this.state.clone() when parsing decorators
Adding the line `this.state = this.state.clone();` in a parser plugin 
(specifically, in my case `parseExprAtom`)
would break decorators. 

This change fixes that.
@danez

danez approved these changes Dec 24, 2016

@danez danez merged commit 68bb1c6 into babel:master Jan 2, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.