aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-08 03:24:42 +0800
committerGitHub <noreply@github.com>2017-05-08 03:24:42 +0800
commit4f8ca4626efb15dc986785c89c51cbb3061e5f32 (patch)
tree868a08425b50c70f0654a7ee675851da2633a53a /bin
parente54748365cba0509c82c089cdc2ef6a8bb1a724b (diff)
downloadtracifyjs-4f8ca4626efb15dc986785c89c51cbb3061e5f32.tar.gz
tracifyjs-4f8ca4626efb15dc986785c89c51cbb3061e5f32.zip
deprecate low level API (#1877)
fixes #1872
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uglifyjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index c4f9dc5d..b67eb6ba 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -89,7 +89,7 @@ if (program.mangleProps) {
if (typeof program.mangleProps != "object") program.mangleProps = {};
if (!Array.isArray(program.mangleProps.reserved)) program.mangleProps.reserved = [];
require("../tools/domprops").forEach(function(name) {
- UglifyJS.push_uniq(program.mangleProps.reserved, name);
+ UglifyJS._push_uniq(program.mangleProps.reserved, name);
});
}
if (typeof options.mangle != "object") options.mangle = {};
@@ -187,7 +187,7 @@ function run() {
}
var result = UglifyJS.minify(files, options);
} catch (ex) {
- if (ex instanceof UglifyJS.JS_Parse_Error) {
+ if (ex.name == "SyntaxError") {
console.error("Parse error at " + ex.filename + ":" + ex.line + "," + ex.col);
var col = ex.col;
var lines = files[ex.filename].split(/\r?\n/);