Files
test-repo/changelog_unreleased/javascript/10334.md
T

330 B

Fix ASI protection for private fields (#10334 by @thorn0)

// Input
class C {
  #field = 'value';
  ["method"]() {}
}

// Prettier stable (with --no-semi)
class C {
  #field = "value"
  ["method"]() {}
}

// Prettier main (with --no-semi)
class C {
  #field = "value";
  ["method"]() {}
}