diff options
Diffstat (limited to 'test/compress/assignment.js')
-rw-r--r-- | test/compress/assignment.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/assignment.js b/test/compress/assignment.js index ba412583..ece0185d 100644 --- a/test/compress/assignment.js +++ b/test/compress/assignment.js @@ -289,3 +289,25 @@ increment_decrement_2: { } expect_stdout: "42" } + +issue_3375: { + options = { + assignments: true, + reduce_vars: true, + } + input: { + console.log(typeof function(b) { + var a = b += 1; + --b; + return a; + }("object")); + } + expect: { + console.log(typeof function(b) { + var a = b += 1; + --b; + return a; + }("object")); + } + expect_stdout: "string" +} |