aboutsummaryrefslogtreecommitdiff
path: root/test/compress/default-values.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-23 14:33:24 +0000
committerGitHub <noreply@github.com>2021-03-23 22:33:24 +0800
commit78e3936cd489b6a764027f35c27e8438c1bee132 (patch)
tree293e4061f9fa45c4f67c60ba9a6973bb5d046343 /test/compress/default-values.js
parente7be38b42ab8e18d003589f793c8388e072ba429 (diff)
downloadtracifyjs-78e3936cd489b6a764027f35c27e8438c1bee132.tar.gz
tracifyjs-78e3936cd489b6a764027f35c27e8438c1bee132.zip
fix corner case in `inline` (#4818)
fixes #4817
Diffstat (limited to 'test/compress/default-values.js')
-rw-r--r--test/compress/default-values.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/default-values.js b/test/compress/default-values.js
index d4e51750..2e85866e 100644
--- a/test/compress/default-values.js
+++ b/test/compress/default-values.js
@@ -1661,3 +1661,23 @@ issue_4588_2_evaluate: {
expect_stdout: "1"
node_version: ">=6"
}
+
+issue_4817: {
+ options = {
+ ie8: true,
+ inline: true,
+ unused: true,
+ }
+ input: {
+ (function f(a = console.log(typeof f)) {
+ return 42;
+ })();
+ }
+ expect: {
+ (function f(a = console.log(typeof f)) {
+ return 42;
+ })();
+ }
+ expect_stdout: "function"
+ node_version: ">=6"
+}