From d9cd3d33c8f2b769da922d355373d466f8b30704 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 28 Dec 2019 20:26:15 +0000 Subject: enhance `evaluate` (#3649) --- bin/uglifyjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/uglifyjs') 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 }); } -- cgit v1.2.3