diff options
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r-- | test/compress/evaluate.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index 4fecd701..dd94f613 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -2812,3 +2812,24 @@ operator_in: { "true", ] } + +issue_3997: { + options = { + evaluate: true, + reduce_vars: true, + toplevel: true, + } + input: { + var a = function f(b) { + return b[b += this] = b; + }(0); + console.log(typeof a); + } + expect: { + var a = function f(b) { + return b[b += this] = b; + }(0); + console.log(typeof a); + } + expect_stdout: "string" +} |