aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/ie8.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/compress/ie8.js b/test/compress/ie8.js
index 8ed23102..19437074 100644
--- a/test/compress/ie8.js
+++ b/test/compress/ie8.js
@@ -2661,3 +2661,33 @@ issue_4019: {
}
expect_stdout: "0"
}
+
+issue_4028: {
+ options = {
+ reduce_vars: true,
+ toplevel: true,
+ unused: true,
+ }
+ mangle = {
+ ie8: true,
+ }
+ input: {
+ function a() {
+ try {
+ A;
+ } catch (e) {}
+ }
+ var b = a += a;
+ console.log(typeof b);
+ }
+ expect: {
+ function a() {
+ try {
+ A;
+ } catch (a) {}
+ }
+ var b = a += a;
+ console.log(typeof b);
+ }
+ expect_stdout: "string"
+}