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@sebmck@jo_liss Note that Babel REPL might be transpiling it with `sourceType: module` where this syntax is disallowed.1 reply 0 retweets 1 like
Replying to @RReverser
@rreverser Yep, it is. @thejameskyle @jo_liss
10:03 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 