Fix failing _.memoize test in IE 11.

This commit is contained in:
John-David Dalton
2016-08-28 01:32:10 -07:00
parent f627b25e9d
commit 7b3194660c

View File

@@ -10344,7 +10344,7 @@
if (cache.size === MAX_MEMOIZE_SIZE) {
cache = cache.clear() || cache;
}
memoized.cache = cache.set(key, result);
memoized.cache = cache.set(key, result) || cache;
return result;
};
memoized.cache = new (memoize.Cache || MapCache);