aboutsummaryrefslogtreecommitdiff
path: root/test/compress/arrows.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/arrows.js')
-rw-r--r--test/compress/arrows.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/compress/arrows.js b/test/compress/arrows.js
index cc5aec5f..990090b2 100644
--- a/test/compress/arrows.js
+++ b/test/compress/arrows.js
@@ -587,3 +587,32 @@ issue_4401: {
]
node_version: ">=4"
}
+
+issue_4448: {
+ options = {
+ pure_getters: "strict",
+ side_effects: true,
+ }
+ input: {
+ var A;
+ try {
+ (arguments => {
+ arguments[0];
+ })(A);
+ } catch (e) {
+ console.log("PASS");
+ }
+ }
+ expect: {
+ var A;
+ try {
+ (arguments => {
+ arguments[0];
+ })(A);
+ } catch (e) {
+ console.log("PASS");
+ }
+ }
+ expect_stdout: "PASS"
+ node_version: ">=4"
+}