8000 Ensure unit tests pass in Narwhal. · lodash/lodash@562b4eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 562b4eb

Browse files
committed
Ensure unit tests pass in Narwhal.
Former-commit-id: a86ce088a72ea0be7b31e4bccc51ce1286b9418b
1 parent b1f8e84 commit 562b4eb

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

dist/lodash.compat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@
294294
for (prop in arguments) { }
295295

296296
/**
297-
* Detect if `arguments` objects are `Object` objects (all but Opera < 10.5).
297+
* Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
298298
*
299299
* @memberOf _.support
300300
* @type Boolean
301301
*/
302-
support.argsObject = arguments.constructor == Object;
302+
support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
303303

304304
/**
305305
* Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9).

dist/lodash.compat.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lodash.underscore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@
222222
var object = { '0': 1, 'length': 1 };
223223

224224
/**
225-
* Detect if `arguments` objects are `Object` objects (all but Opera < 10.5).
225+
* Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
226226
*
227227
* @memberOf _.support
228228
* @type Boolean
229229
*/
230-
support.argsObject = arguments.constructor == Object;
230+
support.argsObject = arguments.constructor == Object && !(arguments instanceof Array);
231231

232232
/**
233233
* Detect if `Function#bind` exists and is inferred to be fast (all but V8).

0 commit comments

Comments
 (0)
0