diff options
Diffstat (limited to 'test/compress')
-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" +} |