improve `unsafe` on undefined (#1548)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sun, 5 Mar 2017 05:09:27 +0000 (13:09 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Mar 2017 05:09:27 +0000 (13:09 +0800)
commitb33e7f88e60f886ee3403c82ac2e3fb40caa698f
tree76d221f44841840055a1187baca0bb3d5c5af009
parent1f0333e9f146311e0e412fbd0783c0e1e63c7802
improve `unsafe` on undefined (#1548)

`unsafe` turns undefined keyword into a variable of the same name if found, but that interferes with other related optimisations.

Keep track of such transformations to ensure zero information loss in the process.
lib/compress.js
test/compress/issue-1443.js
test/compress/sequences.js