aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;
}