aboutsummaryrefslogtreecommitdiff
path: root/lib/propmangle.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2015-05-13 22:03:00 +0300
committerMihai Bazon <mihai.bazon@gmail.com>2015-05-13 22:03:00 +0300
commit44fd6694ebf1def9974915b163cfc79114eb8e80 (patch)
tree19285bb79026390f770db07fae5cabf8e20c9177 /lib/propmangle.js
parente48db3a8b6ce8bf06448224dbb3f6339f834ed98 (diff)
downloadtracifyjs-44fd6694ebf1def9974915b163cfc79114eb8e80.tar.gz
tracifyjs-44fd6694ebf1def9974915b163cfc79114eb8e80.zip
fix again reserved props
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r--lib/propmangle.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/propmangle.js b/lib/propmangle.js
index d3e582d6..0890eaa7 100644
--- a/lib/propmangle.js
+++ b/lib/propmangle.js
@@ -149,6 +149,7 @@ function mangle_properties(ast, options) {
}
function should_mangle(name) {
+ if (reserved.indexOf(name) >= 0) return false;
return cache.props.has(name)
|| names_to_mangle.indexOf(name) >= 0;
}