mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v3.7.0.
This commit is contained in:
12
support.js
12
support.js
@@ -19,6 +19,12 @@ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||
var support = {};
|
||||
|
||||
(function(x) {
|
||||
var Ctor = function() { this.x = x; },
|
||||
object = { '0': x, 'length': x },
|
||||
props = [];
|
||||
|
||||
Ctor.prototype = { 'valueOf': x, 'y': x };
|
||||
for (var key in new Ctor) { props.push(key); }
|
||||
|
||||
/**
|
||||
* Detect if functions can be decompiled by `Function#toString`
|
||||
@@ -56,8 +62,8 @@ var support = {};
|
||||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object
|
||||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat
|
||||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty`
|
||||
* checks for indexes that exceed their function's formal parameters with
|
||||
* associated values of `0`.
|
||||
* checks for indexes that exceed the number of function parameters and
|
||||
* whose associated argument values are `0`.
|
||||
*
|
||||
* @memberOf _.support
|
||||
* @type boolean
|
||||
@@ -67,6 +73,6 @@ var support = {};
|
||||
} catch(e) {
|
||||
support.nonEnumArgs = true;
|
||||
}
|
||||
}(0, 0));
|
||||
}(1, 0));
|
||||
|
||||
export default support;
|
||||
|
||||
Reference in New Issue
Block a user