Skip to content

End of ES2021

Compare
Choose a tag to compare
@bathos bathos released this 16 Jul 17:30
· 6 commits to master since this release
1d62761

Added:

  • Logical assignment operators &&=, ??= (||= was already present)
  • Ergonomic private field brand checks (#foo in bar)
  • Class static blocks
  • Import assertions

The first two belong to ES2021 and ES2022 respectively. The latter two are stage 3 proposals. Logical assignment was the final ES2021 syntactic feature that wasn’t yet supported.

Removed:

  • The old bind operator proposal (::) has been dead for too many years to
    justify keeping around. Goodbye old friend — you were actually pretty cool.
  • The scope keyword.operator.assignment.conditional.mallet was changed to
    align with the pattern established for other augmented assignment operators.

Fixed:

  • Private generator methods no longer cause the class body context to stick
    around past the end of the actual class body.