Terser: Fail logical nullish assignment (??=) support

Created on 16 Oct 2020  路  3Comments  路  Source: terser/terser

Bug report or Feature request?
Bug report

Version (complete output of terser -V or specific git commit)
npm Version 5.3.5

* Complete CLI command or minify() options used *
minify(code, {ecma:2020})

terser input
var a = 50;
a ??= 200;


terser output or error
JS_Parse_Error [SyntaxError]: Unexpected token: operator (=)

Expected result
var a = 50; a ??= 200

The nullish logical assignment operator seems to be not supported.

Most helpful comment

To clarify, it's a work in progress

All 3 comments

Correct. Logical assignment is still not supported

To clarify, it's a work in progress

Closed in 5907df8941dcfa4b52dfd588331483923795cd1f. Will be released soon

Was this page helpful?
0 / 5 - 0 ratings