Back to Prettier

18540

changelog_unreleased/javascript/18540.md

3.9.0487 B
Original Source

Fix comment print for parenthesized callee (#18540 by @fisker)

<!-- prettier-ignore -->
jsx
// Input
const a = (
  	function(){}
  	/* comment for callee */
  )(),
  b = (
    function(){}
  )(/* comment for call */)

// Prettier stable
const a = (function () {})(),
  /* comment for callee */
  b = (function () {})(/* comment for call */);

// Prettier main
const a = (
    function () {}
    /* comment for callee */
  )(),
  b = (function () {})(/* comment for call */);