mozilla / rhino

Rhino is an open-source implementation of JavaScript written entirely in Java
https://rhino.github.io
Other
4.17k stars 850 forks source link

Support ES2021 Nullish Assignment Operator #936

Closed p-bakker closed 4 days ago

p-bakker commented 3 years ago

Proposal: https://github.com/tc39/proposal-logical-assignment MDN:

  1. DONE https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment
  2. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment
  3. DONE https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND_assignment
p-bakker commented 3 years ago

See https://github.com/mozilla/rhino/pull/838/files for a previous operator addition

p-bakker commented 1 year ago

Maybe some progress made on this already, see https://github.com/mozilla/rhino/issues/937#issuecomment-1604047215?

rbri commented 1 year ago

Maybe some progress made on this already, see https://github.com/mozilla/rhino/issues/937#issuecomment-1604047215?

Had a first look and made some hacking but was not able to generate the correct byte code in the first round, still not enough time to work on this at the moment Sorry

p-bakker commented 1 month ago

1 & 3 done as part of #1597, 2, the ??= nullish assignment operator still to be done