Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

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

Merged
merged 1 commit into from
Jan 2, 2017

Conversation

rattrayalex
Copy link
Contributor

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.

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 merged commit 68bb1c6 into babel:master Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants