mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Fix fp test fails in IE10 and Firefox.
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
amd = root.define && define.amd,
|
amd = root.define && define.amd,
|
||||||
document = !phantom && root.document,
|
document = !phantom && root.document,
|
||||||
noop = function() {},
|
noop = function() {},
|
||||||
slice = arrayProto.slice;
|
slice = arrayProto.slice,
|
||||||
|
WeakMap = root.WeakMap;
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
@@ -360,9 +361,14 @@
|
|||||||
|
|
||||||
filterCount = mapCount = 0;
|
filterCount = mapCount = 0;
|
||||||
|
|
||||||
assert.deepEqual(combined(array), [4, 16]);
|
if (WeakMap && WeakMap.name) {
|
||||||
assert.strictEqual(filterCount, 5, 'filterCount');
|
assert.deepEqual(combined(array), [4, 16]);
|
||||||
assert.strictEqual(mapCount, 5, 'mapCount');
|
assert.strictEqual(filterCount, 5, 'filterCount');
|
||||||
|
assert.strictEqual(mapCount, 5, 'mapCount');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipTest(assert, 3);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -499,7 +505,9 @@
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
_.each(props, function(key) {
|
_.each(props, function(key) {
|
||||||
delete root[key];
|
if (root[key] === fp[key]) {
|
||||||
|
delete root[key];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user