avoid substitution of global variables (#1557)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 6 Mar 2017 19:11:03 +0000 (03:11 +0800)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2017 19:11:03 +0000 (03:11 +0800)
commitd787d70127af1b8df57eee2274c720d34092aef2
treef95114de6109d4697a6a23244f90117f48c1320f
parent3ac24219322384539caae803482ea257e7971cf2
avoid substitution of global variables (#1557)

- unless `toplevel` is enabled
- global `const` works as before
lib/compress.js
test/compress/dead-code.js
test/compress/reduce_vars.js