From 71c3d04681b5f77799d426547be9646f25f44abc Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 5 Jan 2021 18:11:30 +0000 Subject: fix corner case in `side_effects` (#4513) fixes #4512 --- test/compress/destructured.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/compress') diff --git a/test/compress/destructured.js b/test/compress/destructured.js index a476705d..4f6a9f2f 100644 --- a/test/compress/destructured.js +++ b/test/compress/destructured.js @@ -2384,3 +2384,17 @@ issue_4508: { ] node_version: ">=6" } + +issue_4512: { + options = { + side_effects: true, + } + input: { + console.log(function([ a, b = a ]) {}([])); + } + expect: { + console.log(function([ a, b = a ]) {}([])); + } + expect_stdout: "undefined" + node_version: ">=6" +} -- cgit v1.2.3