aboutsummaryrefslogtreecommitdiff
path: root/lib/propmangle.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r--lib/propmangle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/propmangle.js b/lib/propmangle.js
index 8f291d64..d3e582d6 100644
--- a/lib/propmangle.js
+++ b/lib/propmangle.js
@@ -140,10 +140,10 @@ function mangle_properties(ast, options) {
// only function declarations after this line
function can_mangle(name) {
+ if (reserved.indexOf(name) >= 0) return false;
if (options.only_cache) {
return cache.props.has(name);
}
- if (reserved.indexOf(name) >= 0) return false;
if (/^[0-9.]+$/.test(name)) return false;
return true;
}