Move NEGATIVE_INFINITY and POSITIVE_INFINITY out of runInContext.

This commit is contained in:
John-David Dalton
2015-09-03 22:12:17 -07:00
parent 3ef7ae24e5
commit 41d3b66867

View File

@@ -58,6 +58,10 @@
*/
var MAX_SAFE_INTEGER = 9007199254740991;
/** Used as references for `-Infinity` and `Infinity`. */
var NEGATIVE_INFINITY = 1 / -0,
POSITIVE_INFINITY = 1 / 0;
/** Used as the internal argument placeholder. */
var PLACEHOLDER = '__lodash_placeholder__';
@@ -1287,10 +1291,6 @@
// See https://es5.github.io/#x11.1.5 for more details.
context = context ? _.defaults({}, context, _.pick(root, contextProps)) : root;
/** Used as references for `-Infinity` and `Infinity`. */
var NEGATIVE_INFINITY = context.Number.NEGATIVE_INFINITY,
POSITIVE_INFINITY = context.Number.POSITIVE_INFINITY;
/** Native constructor references. */
var Date = context.Date,
Error = context.Error,