Input:
// Comment
throw new ClassName( // Comment
1, // Comment
// Comment
2 // Comment
); // Comment
/* Comment */
throw new ClassName( /* Comment */
/* Comment */ 1, /* Comment */
/* Comment */
/* Comment */ 2 /* Comment */
/* Comment */); /* Comment */
Output:
// Comment
throw new ClassName(// Comment
1, // Comment // Comment
2); // Comment // Comment
/* Comment */
throw new ClassName(/* Comment */ /* Comment */
1, /* Comment */ /* Comment */
/* Comment */
2); /* Comment */
/* Comment */ /* Comment */
fixed in #319
@mgrip no, we just output comments in throw , it is not fixed :smile:
at least partially dependent on https://github.com/prettier/prettier/issues/4346