mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Fix failing _.memoize test in IE 11.
This commit is contained in:
@@ -10344,7 +10344,7 @@
|
|||||||
if (cache.size === MAX_MEMOIZE_SIZE) {
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
||||||
cache = cache.clear() || cache;
|
cache = cache.clear() || cache;
|
||||||
}
|
}
|
||||||
memoized.cache = cache.set(key, result);
|
memoized.cache = cache.set(key, result) || cache;
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
memoized.cache = new (memoize.Cache || MapCache);
|
memoized.cache = new (memoize.Cache || MapCache);
|
||||||
|
|||||||
Reference in New Issue
Block a user