Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Can't minify logical OR assignments #147

@chzager

Description

@chzager

Describe the bug
When trying to minify a JavaScript file where logical OR assignments (see MDN) are used, Minify runs into an error ("Unexpected token: operator (=)")

To Reproduce
Steps to reproduce the behavior:

  1. Make a new JS file
  2. Sample code:
let a = "";
let b = "";
b ||= a;
  1. Minify the file.
  2. See error output console.

Expected behavior
The file should minify to

let a="",b="";b||=a;

Basically it is the same as #144.

Desktop:
VS-Code Version: 1.70.2
Minify Version: v3.3.3
OS: Windows_NT x64 10.0.18363

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions