diff --git a/src/core/util/core.js b/src/core/util/core.js index 04f3fbdd1..be8c2fa4d 100644 --- a/src/core/util/core.js +++ b/src/core/util/core.js @@ -11,7 +11,7 @@ export function cached(fn) { return function (str) { const key = isPrimitive(str) ? str : JSON.stringify(str); const hit = cache[key]; - return hit || (cache[key] = fn(str)); + return hit !== undefined ? hit : (cache[key] = fn(str)); }; }