mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Cleanup and add "Mobile" note to Safari 8 JIT bug test. [ci skip]
This commit is contained in:
@@ -3579,14 +3579,14 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should iterate correctly over an object with numeric keys (test in Safari 8)', 1, function() {
|
test('should iterate correctly over an object with numeric keys (test in Mobile Safari 8)', 1, function() {
|
||||||
// Trigger a Mobile Safari 8 JIT bug.
|
// Trigger a Mobile Safari 8 JIT bug.
|
||||||
// See https://github.com/lodash/lodash/issues/799.
|
// See https://github.com/lodash/lodash/issues/799.
|
||||||
var counter = 0,
|
var counter = 0,
|
||||||
object = { '1': 'foo', '8': 'bar', '50': 'baz' };
|
object = { '1': 'foo', '8': 'bar', '50': 'baz' };
|
||||||
|
|
||||||
_.times(10000, function() {
|
_.times(1000, function() {
|
||||||
_.filter([]);
|
_.filter([], _.constant(true));
|
||||||
});
|
});
|
||||||
|
|
||||||
_.filter(object, function() {
|
_.filter(object, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user