diff options
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r-- | test/compress/functions.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index 2af14a62..4f3139b1 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -3568,3 +3568,29 @@ pr_3592_2: { } expect_stdout: "PASS" } + +inline_use_strict: { + options = { + evaluate: true, + inline: true, + reduce_vars: true, + sequences: true, + side_effects: true, + unused: true, + } + input: { + console.log(function() { + "use strict"; + return function() { + "use strict"; + var a = "foo"; + a += "bar"; + return a; + }; + }()()); + } + expect: { + console.log("foobar"); + } + expect_stdout: "foobar" +} |