mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Add tests to check that _.support properties aren't minified.
This commit is contained in:
16
lodash.js
16
lodash.js
@@ -670,14 +670,6 @@
|
||||
for (var prop in new ctor) { props.push(prop); }
|
||||
for (prop in arguments) { }
|
||||
|
||||
/**
|
||||
* Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
|
||||
|
||||
/**
|
||||
* Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9).
|
||||
*
|
||||
@@ -686,6 +678,14 @@
|
||||
*/
|
||||
support.argsClass = toString.call(arguments) == argsClass;
|
||||
|
||||
/**
|
||||
* Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
*/
|
||||
support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
|
||||
|
||||
/**
|
||||
* Detect if `name` or `message` properties of `Error.prototype` are
|
||||
* enumerable by default. (IE < 9, Safari < 5.1)
|
||||
|
||||
Reference in New Issue
Block a user