From 59a4e56bc81ce96b3ee81ad4f068cfc7d89a4790 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 3 Apr 2017 12:31:05 +0800 Subject: fix mangleProperties of `undefined` & `Infinity` (#1772) `NaN` already works by the happy accident of `Number.NaN` fixes #1770 --- lib/propmangle.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/propmangle.js') diff --git a/lib/propmangle.js b/lib/propmangle.js index cfa035d2..c1e8c7e4 100644 --- a/lib/propmangle.js +++ b/lib/propmangle.js @@ -44,7 +44,11 @@ "use strict"; function find_builtins() { - var a = []; + // NaN will be included due to Number.NaN + var a = [ + "Infinity", + "undefined", + ]; [ Object, Array, Function, Number, String, Boolean, Error, Math, Date, RegExp -- cgit v1.2.3