mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Move NEGATIVE_INFINITY and POSITIVE_INFINITY out of runInContext.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user