mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Avoid testing arguments object constructor which may be Array in some old browsers.
This commit is contained in:
@@ -1828,7 +1828,7 @@
|
||||
|
||||
test('`_.' + methodName + '` should produce an object from the same realm as `value`', 1, function() {
|
||||
var objects = _.transform(_, function(result, value, key) {
|
||||
if (_.startsWith(key, '_') && _.isObject(value) && !_.isElement(value) && !_.isFunction(value)) {
|
||||
if (_.startsWith(key, '_') && _.isObject(value) && !_.isArguments(value) && !_.isElement(value) && !_.isFunction(value)) {
|
||||
result.push(value);
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user