diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-12-28 20:26:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-28 20:26:15 +0000 |
commit | d9cd3d33c8f2b769da922d355373d466f8b30704 (patch) | |
tree | 095c4497bfeaacb24437c950e685df180645687c /bin/uglifyjs | |
parent | 22b47cdd639263313317b77a3166afad767a7ef6 (diff) | |
download | tracifyjs-d9cd3d33c8f2b769da922d355373d466f8b30704.tar.gz tracifyjs-d9cd3d33c8f2b769da922d355373d466f8b30704.zip |
enhance `evaluate` (#3649)
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index ace94e7e..dc9baf81 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -59,7 +59,7 @@ if (program.configFile) { if (options.mangle && options.mangle.properties && options.mangle.properties.regex) { options.mangle.properties.regex = UglifyJS.parse(options.mangle.properties.regex, { expression: true - }).getValue(); + }).value; } } if (!program.output && program.sourceMap && program.sourceMap.url != "inline") { @@ -370,7 +370,7 @@ function parse_js(flag) { if (!(node instanceof UglifyJS.AST_Sequence)) throw node; function to_string(value) { - return value instanceof UglifyJS.AST_Constant ? value.getValue() : value.print_to_string({ + return value instanceof UglifyJS.AST_Constant ? value.value : value.print_to_string({ quote_keys: true }); } |