Closed Conduitry closed 3 years ago
cr.print(cr.b`return (\n// comment\nfoo)`).code
evaluates to
'return // comment\nfoo;'
which is incorrect due to ASI. This seems to be handled correctly without the comment.
It looks like this is also present for /* comment */ as well.
/* comment */
evaluates to
which is incorrect due to ASI. This seems to be handled correctly without the comment.