diff options
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/hoist_props.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/hoist_props.js b/test/compress/hoist_props.js index a73df1f5..4fcbd796 100644 --- a/test/compress/hoist_props.js +++ b/test/compress/hoist_props.js @@ -972,3 +972,26 @@ issue_3871: { } expect_stdout: "PASS" } + +issue_3945: { + options = { + hoist_props: true, + reduce_vars: true, + } + input: { + function f() { + o.p; + var o = { + q: 0, + }; + } + } + expect: { + function f() { + o.p; + var o = { + q: 0, + }; + } + } +} |