Adds the logical assignment operators ||=, &&=, and ??= to JavaScript.

Motivation

This rounds out the compound assignment operators to also include logical binary operators. Currently only mathematical and bitwise binary operators are supported. This is an incremental improvement for shipping terser, clearer JS.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>JavaScript


Enabled by default (tracking bug) in:

  • Chrome for desktop release 85
  • Chrome for Android release 85
  • Android WebView release 85

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Search tags

logical assignment,

Last updated on 2020-11-09