diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-11 21:18:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 21:18:08 +0800 |
commit | 23ec484806e1ed1cc7c2580abbd3ff050367b358 (patch) | |
tree | 9a6dbee6adc1b0c13f8d0ef0e44511027cfbe5cf /test/compress/properties.js | |
parent | f1e1bb419ab642763c43dec95e07165f477a43be (diff) | |
download | tracifyjs-23ec484806e1ed1cc7c2580abbd3ff050367b358.tar.gz tracifyjs-23ec484806e1ed1cc7c2580abbd3ff050367b358.zip |
fix corner case in #2763 (#2766)
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r-- | test/compress/properties.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js index d70eb85a..6b368e64 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -1162,3 +1162,29 @@ join_object_assignments_2: { } expect_stdout: "1 4 6" } + +join_object_assignments_3: { + options = { + evaluate: true, + join_vars: true, + } + input: { + console.log(function() { + var o = { + a: "PASS", + }, a = o.a; + o.a = "FAIL"; + return a; + }()); + } + expect: { + console.log(function() { + var o = { + a: "PASS", + }, a = o.a; + o.a = "FAIL"; + return a; + }()); + } + expect_stdout: "PASS" +} |