aboutsummaryrefslogtreecommitdiff
path: root/lib/propmangle.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r--lib/propmangle.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/propmangle.js b/lib/propmangle.js
index efb31cc1..f17909d7 100644
--- a/lib/propmangle.js
+++ b/lib/propmangle.js
@@ -78,7 +78,8 @@ function mangle_properties(ast, options) {
reserved: null,
});
- var reserved = options.reserved || [];
+ var reserved = options.reserved;
+ if (!Array.isArray(reserved)) reserved = [];
if (!options.builtins) find_builtins(reserved);
var cache = options.cache;