diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-18 02:12:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 10:12:01 +0800 |
commit | 1b646d3bc4bd69cbe12fb14def7716edde01a3c4 (patch) | |
tree | a90303e6c683dec344cf052f2ddc0c8e64b56c67 /test | |
parent | 82d2aa4acf1eea742a3b1041223a74b5960d4bfd (diff) | |
download | tracifyjs-1b646d3bc4bd69cbe12fb14def7716edde01a3c4.tar.gz tracifyjs-1b646d3bc4bd69cbe12fb14def7716edde01a3c4.zip |
fix corner case in `arguments` (#4400)
fixes #4399
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/destructured.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js index 1c448f2a..8e1cf68c 100644 --- a/test/compress/destructured.js +++ b/test/compress/destructured.js @@ -1906,3 +1906,25 @@ issue_4395: { expect_stdout: "PASS" node_version: ">=6" } + +issue_4399: { + options = { + arguments: true, + } + input: { + console.log(function({ + [arguments[1]]: a, + }, b) { + return a; + }([ "PASS" ], 0)); + } + expect: { + console.log(function({ + [arguments[1]]: a, + }, b) { + return a; + }([ "PASS" ], 0)); + } + expect_stdout: "PASS" + node_version: ">=6" +} |