diff options
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r-- | lib/propmangle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/propmangle.js b/lib/propmangle.js index c1e8c7e4..4e43bb63 100644 --- a/lib/propmangle.js +++ b/lib/propmangle.js @@ -47,6 +47,7 @@ function find_builtins() { // NaN will be included due to Number.NaN var a = [ "Infinity", + "-Infinity", "undefined", ]; [ Object, Array, Function, Number, @@ -153,7 +154,6 @@ 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) { |