compress `undefined` property names (#2811)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 18 Jan 2018 16:36:30 +0000 (00:36 +0800)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2018 16:36:30 +0000 (00:36 +0800)
commit082e004b872ecb158e5a28702898688742b5da86
tree81b5183f9f108c64680d106c0d51af43c4751e5a
parent983e69128b0e6da78d71ad9b77d798f31a10ca44
compress `undefined` property names (#2811)

- enforce property names as string
- handle `void 0` as `undefined` in `hoist_props` & `reduce_vars`
lib/ast.js
lib/compress.js
lib/output.js
lib/parse.js
test/compress/hoist_props.js
test/compress/issue-1770.js