diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-19 22:19:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 22:19:33 +0800 |
commit | 2273655c17b41ab276172afecd652a297c550c00 (patch) | |
tree | 8eb6f69c9ba928bff8b7c27e1cb7ba7779ec68dd /lib | |
parent | 01057cf76d799edc5c7dd45d42a2e7bf44589948 (diff) | |
download | tracifyjs-2273655c17b41ab276172afecd652a297c550c00.tar.gz tracifyjs-2273655c17b41ab276172afecd652a297c550c00.zip |
fix `inline` after single-use `reduce_vars` (#2623)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index c51a90c1..c95e4f84 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4004,7 +4004,9 @@ merge(Compressor.prototype, { var catches = Object.create(null); do { scope = compressor.parent(level++); - if (scope instanceof AST_Catch) { + if (scope instanceof AST_SymbolRef) { + scope = scope.fixed_value(); + } else if (scope instanceof AST_Catch) { catches[scope.argname.name] = true; } } while (!(scope instanceof AST_Scope)); |