From db50adbd9f0fa1d3323560f7ed9fcbe1342508ce Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 28 Nov 2014 16:03:13 -0800 Subject: [PATCH] Cleanup and add "Mobile" note to Safari 8 JIT bug test. [ci skip] --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index d0747505e..e795b38c6 100644 --- a/test/test.js +++ b/test/test.js @@ -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. // See https://github.com/lodash/lodash/issues/799. var counter = 0, object = { '1': 'foo', '8': 'bar', '50': 'baz' }; - _.times(10000, function() { - _.filter([]); + _.times(1000, function() { + _.filter([], _.constant(true)); }); _.filter(object, function() {