TIL, `<!--` in JS starts a single-line comment: foo() <!-- single-line comment bar() --> single-line comment (must be at beginning of line)
-
-
Replying to @jo_liss
This syntax must've been around forever to support <script><!-- … --></script> but has only been specified in ES6: https://people.mozilla.org/~jorendorff/es6-draft.html …
2 replies 2 retweets 3 likes -
This Tweet is unavailable.
-
Replying to @jamiebuilds
@thejameskyle@jo_liss Was that sarcasm? Because syntax is totally valid, so yeah, Acorn supports it.1 reply 0 retweets 1 like -
This Tweet is unavailable.
-
Replying to @jamiebuilds
@thejameskyle It's acorn-jsx.@rreverser@jo_liss1 reply 0 retweets 1 like
@thejameskyle Wait it may not be. IIRC I looked into it and it was because of syntax ambiguity with JSX starting tags. @rreverser @jo_liss
10:01 AM - 16 May 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 