From dd30ed6a9bf108f05b103eef81d84f91ae4c6322 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 5 Mar 2021 05:18:01 +0000 Subject: enhance `collapse_vars` (#4735) --- test/compress/classes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/compress/classes.js') diff --git a/test/compress/classes.js b/test/compress/classes.js index 82c6f30e..93819bfa 100644 --- a/test/compress/classes.js +++ b/test/compress/classes.js @@ -620,11 +620,10 @@ collapse_rhs: { expect: { "use strict"; var a = "FAIL"; - a = "PASS"; class A { p = "PASS"; } - console.log(a); + console.log(a = "PASS"); } expect_stdout: "PASS" node_version: ">=12" -- cgit v1.2.3