Created
October 31, 2014 09:39
-
-
Save rolaveric/75591c7a45a38cfe8983 to your computer and use it in GitHub Desktop.
Annotations from AtScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Annotation in AtScript | |
@MyAnnotation({a: 'b'}) | |
function fn() {} | |
// Equivalent ES5 | |
function fn() {} | |
fn.annotations = [new MyAnnotation({a: 'b'})]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment