aboutsummaryrefslogtreecommitdiff
path: root/test/compress/merge_vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/merge_vars.js')
-rw-r--r--test/compress/merge_vars.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/compress/merge_vars.js b/test/compress/merge_vars.js
index b5b71019..559832c2 100644
--- a/test/compress/merge_vars.js
+++ b/test/compress/merge_vars.js
@@ -2738,3 +2738,31 @@ issue_4135: {
}
expect_stdout: "1 -1 undefined"
}
+
+issue_4139: {
+ options = {
+ merge_vars: true,
+ toplevel: true,
+ }
+ input: {
+ try {
+ console.log;
+ } catch (e) {
+ var a, arguments = 0;
+ } finally {
+ a = typeof arguments;
+ console.log(a);
+ }
+ }
+ expect: {
+ try {
+ console.log;
+ } catch (e) {
+ var a, arguments = 0;
+ } finally {
+ a = typeof arguments;
+ console.log(a);
+ }
+ }
+ expect_stdout: "object"
+}