Drop all `console` statements properly
authorRichard van Velzen <rvanvelzen1@gmail.com>
Sat, 31 Jan 2015 12:22:07 +0000 (13:22 +0100)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Sat, 31 Jan 2015 12:24:44 +0000 (13:24 +0100)
commit605362f89da444e46bae35e7f9384b5cba2eeb80
tree192b5d82ce328f5d7b2ba1dbd43ed2e090843f29
parentfbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5
Drop all `console` statements properly

Because the base reference can be an member expression as well, we have to dig a bit deeper to find the leftmost base reference.

Fixes #451
lib/compress.js
test/compress/drop-console.js [new file with mode: 0644]