diff options
Diffstat (limited to 'test/compress/destructured.js')
-rw-r--r-- | test/compress/destructured.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js index 17aa786a..66aebc1c 100644 --- a/test/compress/destructured.js +++ b/test/compress/destructured.js @@ -691,6 +691,28 @@ funarg_inline: { node_version: ">=6" } +process_boolean_returns: { + options = { + booleans: true, + } + input: { + console.log(function({ length }) { + return length ? "FAIL" : "PASS"; + }(function() { + return 42; + })); + } + expect: { + console.log(function({ length }) { + return length ? "FAIL" : "PASS"; + }(function() { + return 42; + })); + } + expect_stdout: "PASS" + node_version: ">=6" +} + simple_const: { options = { evaluate: true, |