fix `unsafe` on `evaluate` of `reduce_vars` (#1870)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 6 May 2017 15:18:55 +0000 (23:18 +0800)
committerGitHub <noreply@github.com>
Sat, 6 May 2017 15:18:55 +0000 (23:18 +0800)
commit2c7ee956fd829624cacfdbde43d74ee8d3bb5e82
tree6569ffecf4748f7da96e34a268167eb319fb082c
parentecf3563c45e7cbf58cc9b7528ee5804691420a60
fix `unsafe` on `evaluate` of `reduce_vars` (#1870)

Determine if variables with non-constant values can escape and be modified.

fixes #1865
lib/compress.js
test/compress/reduce_vars.js