esprima icon indicating copy to clipboard operation
esprima copied to clipboard

Support ES2021 Logical Assignment

Open ljqx opened this issue 4 years ago • 2 comments

This PR fixes #2057.

  • scanner.ts is updated to accept &&=, ||=, ??=.
  • parser.ts is updated to treat &&=, ||=, ??= as assignment operator.
  • Unit tests and test-262 whitelist are updated.

ljqx avatar May 13 '21 05:05 ljqx

@ljqx can you please rebase this against master to make sure the optional attribute is not missing in the JSON tree presentation?

lahma avatar Aug 23 '21 04:08 lahma

@ariya I've tested this on .NET side and successfully integrated to Jint codebase, passing all tests related to logical assignment.

lahma avatar Sep 19 '21 13:09 lahma