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

Rename annotations to decorators #2078

Open
sergeysova opened this issue Feb 12, 2016 · 2 comments
Open

Rename annotations to decorators #2078

sergeysova opened this issue Feb 12, 2016 · 2 comments

Comments

@sergeysova
Copy link
Author

Because decorators decorate class and functions, not annotate:

// ES7
@Decorator
class Name {}
// ES5
var Name = (function(){
  function _Name(){};
  return Decorator(_Name) || _Name;
})()

@arv
Copy link
Collaborator

arv commented Feb 12, 2016

We also need to update these to match the latest proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants