fix catch variable reference in IE8 (#1587)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 9 Mar 2017 19:15:21 +0000 (03:15 +0800)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2017 19:15:21 +0000 (03:15 +0800)
commit9e6b128374c62ee9f6238134fdc207ec9dc86284
tree2baea0b4a78af05f080ef389e7b58f0c6c957479
parent93cdb194f4895384b68a66736366659c39caece8
fix catch variable reference in IE8 (#1587)

`AST_Scope.def_variable()` will overwrite `AST_Symbol.thedef`, so save a copy before calling.

fixes #1586
lib/scope.js
test/compress/screw-ie8.js