aboutsummaryrefslogtreecommitdiff
path: root/test/compress/classes.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-05 05:18:01 +0000
committerGitHub <noreply@github.com>2021-03-05 13:18:01 +0800
commitdd30ed6a9bf108f05b103eef81d84f91ae4c6322 (patch)
tree206a02f962fcbbec0a3747789e6a17b56b31e815 /test/compress/classes.js
parentcb50a2d192ef8be1aac7577d6ec9c06f27b71232 (diff)
downloadtracifyjs-dd30ed6a9bf108f05b103eef81d84f91ae4c6322.tar.gz
tracifyjs-dd30ed6a9bf108f05b103eef81d84f91ae4c6322.zip
enhance `collapse_vars` (#4735)
Diffstat (limited to 'test/compress/classes.js')
-rw-r--r--test/compress/classes.js3
1 files changed, 1 insertions, 2 deletions
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"