aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/spreads.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/compress/spreads.js b/test/compress/spreads.js
index 7eac2482..a3a70035 100644
--- a/test/compress/spreads.js
+++ b/test/compress/spreads.js
@@ -918,3 +918,32 @@ issue_4560_3: {
expect_stdout: "PASS"
node_version: ">=6"
}
+
+issue_4614: {
+ options = {
+ pure_getters: "strict",
+ side_effects: true,
+ }
+ input: {
+ try {
+ (function(...[]) {
+ var arguments;
+ arguments[0];
+ })();
+ } catch (e) {
+ console.log("PASS");
+ }
+ }
+ expect: {
+ try {
+ (function(...[]) {
+ var arguments;
+ arguments[0];
+ })();
+ } catch (e) {
+ console.log("PASS");
+ }
+ }
+ expect_stdout: true
+ node_version: ">=6"
+}