fix function name eliminiation (#1576)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 8 Mar 2017 04:39:57 +0000 (12:39 +0800)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2017 04:39:57 +0000 (12:39 +0800)
commitc7cdcf06a65b70b557894c1680fc099d3c7aca6a
treeddcd4f34e8c11e0c7cfa942380d05e9ed66b06c4
parent3ee55748d466f36aff54383b53fb3deca144de97
fix function name eliminiation (#1576)

Function expression can be assigned to a variable and be given a name. Ensure function name is the reduced variable before clearing it out.

fixes #1573
fixes #1575
lib/compress.js
test/compress/reduce_vars.js