improve `--reduce-test` (#3722)
authorkzc <kzc@users.noreply.github.com>
Sat, 15 Feb 2020 20:22:33 +0000 (15:22 -0500)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2020 20:22:33 +0000 (20:22 +0000)
commitfbfa6178a6081e03c3edcbec706b2c6e103f9ba7
treedd969fa4eaddf5be41a42dfdb6cd854c1d3bba87
parent5315dd95b0402b656d07660b705b27a0404183d4
improve `--reduce-test` (#3722)

- hoist body of functions and IIFEs
- simplify var declarations
test/input/reduce/unsafe_math.reduced.js
test/reduce.js