Skip to content

Allow decorators in ES3 - #4741

Merged
Ron Buckton (rbuckton) merged 4 commits into
masterfrom
es3Decorators
Oct 2, 2015
Merged

Ron Buckton (rbuckton) merged 4 commits into
masterfrom
es3Decorators

Conversation

@rbuckton

Copy link
Copy Markdown
Contributor

This change modifies the checker and the emitter to support the use of decorators when targeting ES3. In addition to removing the ES5-specific use of reduceRight from the __decorate helper, this change also inlines the calls to Object.getOwnPropertyDescriptor and Object.defineProperty in a backwards-compatible fashion that allows us to clean up the emit for ES5 and later by removing various repetitive calls to the aforementioned Object methods.

Addresses #4681.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants