aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-02-15 13:04:44 +0000
committerGitHub <noreply@github.com>2020-02-15 13:04:44 +0000
commitf0a29902acc24217881529449c7f9b8815896297 (patch)
tree376a926f874380cee6c04d5b123c18f646e976bf /test/compress/properties.js
parent0d820e4c0a7a1b1eeee25fb632b9496a9780b28a (diff)
downloadtracifyjs-f0a29902acc24217881529449c7f9b8815896297.tar.gz
tracifyjs-f0a29902acc24217881529449c7f9b8815896297.zip
enhance `properties` (#3721)
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index a70ab7d8..9270f438 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -817,6 +817,29 @@ issue_2208_5: {
expect_stdout: "42"
}
+issue_2208_6: {
+ options = {
+ inline: true,
+ properties: true,
+ side_effects: true,
+ }
+ input: {
+ a = 42;
+ console.log(("FAIL", {
+ p: function() {
+ return this.a;
+ }
+ }.p)());
+ }
+ expect: {
+ a = 42;
+ console.log(function() {
+ return this.a;
+ }());
+ }
+ expect_stdout: "42"
+}
+
issue_2256: {
options = {
side_effects: true,