diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-10-22 04:19:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 04:19:40 +0800 |
commit | 4ae1fb3ed8380d06220fd242037bd277fc21c17d (patch) | |
tree | 9a78db912fa771fb700e9919a31ad4c1b703e711 /test/compress | |
parent | 011123223b8e45ab3f6d151ad038a6b8ecec2434 (diff) | |
download | tracifyjs-4ae1fb3ed8380d06220fd242037bd277fc21c17d.tar.gz tracifyjs-4ae1fb3ed8380d06220fd242037bd277fc21c17d.zip |
fix `unsafe` evaluation of objects (#2388)
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/properties.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js index c2c43f69..c8a85697 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -804,3 +804,21 @@ issue_2256: { g.keep = g.g; } } + +lhs_prop: { + options = { + evaluate: true, + unsafe: true, + } + input: { + console.log(++{ + a: 1 + }.a); + } + expect: { + console.log(++{ + a: 1 + }.a); + } + expect_stdout: "2" +} |