diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-08 03:24:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-08 03:24:42 +0800 |
commit | 4f8ca4626efb15dc986785c89c51cbb3061e5f32 (patch) | |
tree | 868a08425b50c70f0654a7ee675851da2633a53a /bin | |
parent | e54748365cba0509c82c089cdc2ef6a8bb1a724b (diff) | |
download | tracifyjs-4f8ca4626efb15dc986785c89c51cbb3061e5f32.tar.gz tracifyjs-4f8ca4626efb15dc986785c89c51cbb3061e5f32.zip |
deprecate low level API (#1877)
fixes #1872
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/uglifyjs | 4 |
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/); |