aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-11-28 16:43:30 +0200
committerMihai Bazon <mihai@bazon.net>2013-11-28 16:43:30 +0200
commitd2190c2bf340d807a0c8595dbc2f849aa3bcc443 (patch)
tree4ec009a6b861db9e70fcfe69c03162a65a856134 /lib/compress.js
parentea1064257206cfa8d55ee6aad05536f940cc38a4 (diff)
downloadtracifyjs-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.js4
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 {