enhance `global_defs`
authoralexlamsl <alexlamsl@gmail.com>
Sat, 18 Feb 2017 11:27:31 +0000 (19:27 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Tue, 21 Feb 2017 05:29:58 +0000 (13:29 +0800)
commite275148998638bdcf795257ed03941ca34e33018
treec9019dec5f4a26a2ecfa47161cada4deff1c1bf7
parent974247c8c0e57901ef776e86784c8c9a1b87b5de
enhance `global_defs`
- support arrays, objects & AST_Node
- support `"a.b":1` on both cli & API
- emit warning if variable is modified
- override top-level variables

fixes #1416
closes #1198
closes #1469
README.md
lib/compress.js
lib/scope.js
test/compress/global_defs.js [new file with mode: 0644]
test/compress/issue-208.js
test/input/global_defs/nested.js [new file with mode: 0644]
test/input/global_defs/simple.js [new file with mode: 0644]
test/mocha/cli.js