Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 346 Bytes

File metadata and controls

19 lines (15 loc) · 346 Bytes

Fix missing parentheses when an expression statement starts with let[ (#14000, #14044 by @fisker, @thorn0)

// Input
(let[0] = 2);

// Prettier stable
let[0] = 2;

// Prettier stable (second format)
SyntaxError: Unexpected token (1:5)
> 1 | let[0] = 2;
    |     ^
  2 |

// Prettier main
(let)[0] = 2;