aboutsummaryrefslogtreecommitdiff
path: root/test/compress/reduce_vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/reduce_vars.js')
-rw-r--r--test/compress/reduce_vars.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index f916e54b..836d7fe2 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -5527,3 +5527,21 @@ issue_2869: {
}
expect_stdout: "PASS"
}
+
+issue_2919: {
+ options = {
+ evaluate: true,
+ reduce_vars: true,
+ toplevel: true,
+ unsafe: true,
+ unused: true,
+ }
+ input: {
+ var arr = [ function() {} ];
+ console.log(typeof arr[0]);
+ }
+ expect: {
+ console.log("function");
+ }
+ expect_stdout: "function"
+}