mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Use numberProto more in test/test.js.
This commit is contained in:
@@ -8740,9 +8740,9 @@
|
|||||||
deepEqual(func('abc').sort(), ['0', '1', '2']);
|
deepEqual(func('abc').sort(), ['0', '1', '2']);
|
||||||
|
|
||||||
// IE 9 doesn't box numbers in for-in loops.
|
// IE 9 doesn't box numbers in for-in loops.
|
||||||
Number.prototype.a = 1;
|
numberProto.a = 1;
|
||||||
deepEqual(func(0).sort(), isKeys ? [] : ['a']);
|
deepEqual(func(0).sort(), isKeys ? [] : ['a']);
|
||||||
delete Number.prototype.a;
|
delete numberProto.a;
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should treat sparse arrays as dense', 1, function() {
|
test('`_.' + methodName + '` should treat sparse arrays as dense', 1, function() {
|
||||||
@@ -8848,7 +8848,7 @@
|
|||||||
'Error': errorProto,
|
'Error': errorProto,
|
||||||
'Function': funcProto,
|
'Function': funcProto,
|
||||||
'Object': objectProto,
|
'Object': objectProto,
|
||||||
'Number': Number.prototype,
|
'Number': numberProto,
|
||||||
'TypeError': TypeError.prototype,
|
'TypeError': TypeError.prototype,
|
||||||
'RegExp': RegExp.prototype,
|
'RegExp': RegExp.prototype,
|
||||||
'String': stringProto
|
'String': stringProto
|
||||||
|
|||||||
Reference in New Issue
Block a user