From 23ec484806e1ed1cc7c2580abbd3ff050367b358 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 11 Jan 2018 21:18:08 +0800 Subject: fix corner case in #2763 (#2766) --- test/compress/properties.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'test/compress/properties.js') 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" +} -- cgit v1.2.3