fix `unused` on for-in statements (#1843)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sun, 23 Apr 2017 19:14:01 +0000 (03:14 +0800)
committerGitHub <noreply@github.com>
Sun, 23 Apr 2017 19:14:01 +0000 (03:14 +0800)
commit9e626281716c0f11ed6b289d6a48c7b681a99a1e
tree4b6335c69fe250f660b4302e568381076ca91abb
parent9bf72cf75822044ae314b4646db9aefb1bd38284
fix `unused` on for-in statements (#1843)

Only need to avoid `var` within the initialisation block.

fixes #1841
lib/compress.js
test/compress/functions.js