fix `collapse_vars` on default function argument (#2299)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sun, 3 Sep 2017 18:32:33 +0000 (02:32 +0800)
committerGitHub <noreply@github.com>
Sun, 3 Sep 2017 18:32:33 +0000 (02:32 +0800)
commit395a17ccda95362b1a7a5bd9ac0e6cda7f0946a8
tree0db53fc17b4f8e090af5f99250cbf86dc184c468
parent3f355866cf903c40c2bab2cd841ab2b56a2bacf1
fix `collapse_vars` on default function argument (#2299)

Avoid collision with local variable `undefined` under certain corner cases.

fixes #2298
lib/compress.js
test/compress/collapse_vars.js