From: Anat Dagan Date: Fri, 10 Feb 2017 12:13:47 +0000 (+0200) Subject: in mangle_names there is a check that the variable name is legal and that it is not... X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=81f1df14d7c931cddedad9666a7c57f4373ec918;p=UglifyJS.git in mangle_names there is a check that the variable name is legal and that it is not a reserved word. This should apply to propsmangle as well. --- diff --git a/lib/propmangle.js b/lib/propmangle.js index f2777475..3c75cac9 100644 --- a/lib/propmangle.js +++ b/lib/propmangle.js @@ -149,6 +149,7 @@ function mangle_properties(ast, options) { // only function declarations after this line function can_mangle(name) { + if (!is_identifier(name)) return false; if (unmangleable.indexOf(name) >= 0) return false; if (reserved.indexOf(name) >= 0) return false; if (options.only_cache) {