diff options
Diffstat (limited to 'test/compress/hoist_props.js')
-rw-r--r-- | test/compress/hoist_props.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/compress/hoist_props.js b/test/compress/hoist_props.js index 692dc676..09137cc9 100644 --- a/test/compress/hoist_props.js +++ b/test/compress/hoist_props.js @@ -1016,3 +1016,28 @@ issue_3945_2: { } expect_stdout: "undefined" } + +issue_4023: { + options = { + comparisons: true, + hoist_props: true, + inline: true, + reduce_vars: true, + toplevel: true, + typeofs: true, + unused: true, + } + input: { + function f() { + var a = function() { + return { p: 0 }; + }(); + return console.log("undefined" != typeof a); + } + f(); + } + expect: { + console.log(void 0 !== {}); + } + expect_stdout: "true" +} |