aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoralexlamsl <alexlamsl@gmail.com>2020-09-22 07:48:55 +0800
committeralexlamsl <alexlamsl@gmail.com>2020-09-22 07:48:55 +0800
commit8c670cae93c1fda0e893ef27cccfb515b836c30d (patch)
tree507835024944f45fe3b82fd5cec44ea4a7af49b9 /test
parent0e3da27727194f6aaab5a08913008b0fc4153501 (diff)
downloadtracifyjs-8c670cae93c1fda0e893ef27cccfb515b836c30d.tar.gz
tracifyjs-8c670cae93c1fda0e893ef27cccfb515b836c30d.zip
enhance `unused`
Diffstat (limited to 'test')
-rw-r--r--test/compress/functions.js2
-rw-r--r--test/compress/reduce_vars.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 8bfb2eaf..3027d59e 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -2676,7 +2676,7 @@ cross_references_3: {
};
return Math.square(n) + Math.cube(n);
};
- }(Math)(2));
+ }()(2));
console.log(Math.square(3), Math.cube(3));
}
expect_stdout: [
diff --git a/test/compress/reduce_vars.js b/test/compress/reduce_vars.js
index 153ac5d4..a79dd068 100644
--- a/test/compress/reduce_vars.js
+++ b/test/compress/reduce_vars.js
@@ -2415,7 +2415,7 @@ redefine_farg_2: {
console.log(typeof [], "number",function(a, b) {
a = b;
return typeof a;
- }([]));
+ }());
}
expect_stdout: "object number undefined"
}