aboutsummaryrefslogtreecommitdiff
path: root/test/compress/const.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/const.js')
-rw-r--r--test/compress/const.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/const.js b/test/compress/const.js
index 8bb9a94e..b20c4c59 100644
--- a/test/compress/const.js
+++ b/test/compress/const.js
@@ -1045,3 +1045,23 @@ issue_4225: {
}
expect_stdout: true
}
+
+issue_4229: {
+ options = {
+ ie8: true,
+ side_effects: true,
+ }
+ input: {
+ (function f() {
+ f;
+ const f = 42;
+ })();
+ }
+ expect: {
+ (function f() {
+ f;
+ const f = 42;
+ })();
+ }
+ expect_stdout: true
+}