aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-06 08:51:38 +0800
committerGitHub <noreply@github.com>2019-10-06 08:51:38 +0800
commit35338a100f62d881de06eebdaa1ed98c7212cfc4 (patch)
tree755621a77e6ba08c57b78d8671b13373518ee067 /test/compress/functions.js
parentd57b606e7387c103661538ee9df36dc18199b9ba (diff)
downloadtracifyjs-35338a100f62d881de06eebdaa1ed98c7212cfc4.tar.gz
tracifyjs-35338a100f62d881de06eebdaa1ed98c7212cfc4.zip
handle function/variable name collisions correctly (#3451)
fixes #3439
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 40a38c02..f01a02e8 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -3149,6 +3149,27 @@ issue_3402: {
]
}
+issue_3439: {
+ options = {
+ inline: true,
+ }
+ input: {
+ console.log(typeof function() {
+ return function(a) {
+ function a() {}
+ return a;
+ }(42);
+ }());
+ }
+ expect: {
+ console.log(typeof function(a) {
+ function a() {}
+ return a;
+ }(42));
+ }
+ expect_stdout: "function"
+}
+
issue_3444: {
options = {
inline: true,