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

Can't minify logical OR assignments #147

Open
Suppenhuhn79 opened this issue Aug 29, 2022 · 0 comments
Open

Can't minify logical OR assignments #147

Suppenhuhn79 opened this issue Aug 29, 2022 · 0 comments

Comments

@Suppenhuhn79
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant