diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-03-02 00:20:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 00:20:53 +0800 |
commit | 7aa69117e1a38e4aeead13100ac952ca99dbb07f (patch) | |
tree | 6b957de603843f936905ff76caceb22a2e625a4c /test/compress/switch.js | |
parent | bff7ad67bbab6ce0792292fba66d3a6cf8d1836f (diff) | |
download | tracifyjs-7aa69117e1a38e4aeead13100ac952ca99dbb07f.tar.gz tracifyjs-7aa69117e1a38e4aeead13100ac952ca99dbb07f.zip |
fix corner cases in `reduce_vars` (#1524)
Avoid variable substitution in the following cases:
- use of variable before declaration
- declaration within conditional code blocks
- declaration within loop body
fixes #1518
fixes #1525
Diffstat (limited to 'test/compress/switch.js')
0 files changed, 0 insertions, 0 deletions