diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-11-28 16:43:30 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-11-28 16:43:30 +0200 |
commit | d2190c2bf340d807a0c8595dbc2f849aa3bcc443 (patch) | |
tree | 4ec009a6b861db9e70fcfe69c03162a65a856134 /lib/compress.js | |
parent | ea1064257206cfa8d55ee6aad05536f940cc38a4 (diff) | |
download | tracifyjs-d2190c2bf340d807a0c8595dbc2f849aa3bcc443.tar.gz tracifyjs-d2190c2bf340d807a0c8595dbc2f849aa3bcc443.zip |
Properly scope `catch` identifier when --screw-ie8
Fix #344
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index 3cc59e2c..95dd64d6 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1669,10 +1669,10 @@ merge(Compressor.prototype, { return arg.value; }).join(",") + "){" + self.args[self.args.length - 1].value + "})()"; var ast = parse(code); - ast.figure_out_scope(); + ast.figure_out_scope({ screw_ie8: compressor.option("screw_ie8") }); var comp = new Compressor(compressor.options); ast = ast.transform(comp); - ast.figure_out_scope(); + ast.figure_out_scope({ screw_ie8: compressor.option("screw_ie8") }); ast.mangle_names(); var fun; try { |