public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8d72d
)
in mangle_names there is a check that the variable name is legal and that it is not...
author
Anat Dagan
<anadt@ironsrc.com>
Fri, 10 Feb 2017 12:13:47 +0000
(14:13 +0200)
committer
Anat Dagan
<anadt@ironsrc.com>
Fri, 10 Feb 2017 12:13:47 +0000
(14:13 +0200)
lib/propmangle.js
patch
|
blob
|
history
diff --git
a/lib/propmangle.js
b/lib/propmangle.js
index
f277747
..
3c75cac
100644
(file)
--- 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) {