aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 5b0c49b8..f4662082 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -1887,3 +1887,21 @@ use_before_init_in_loop: {
}
expect_stdout: "PASS"
}
+
+duplicate_arg_var: {
+ options = {
+ inline: true,
+ toplevel: true,
+ }
+ input: {
+ console.log(function(b) {
+ return b;
+ var b;
+ }("PASS"));
+ }
+ expect: {
+ console.log((b = "PASS", b));
+ var b;
+ }
+ expect_stdout: "PASS"
+}