Skip to content

Commit 12a306e

Browse files
catamorphismptomato
authored andcommitted
Explicitly check for undefined
1 parent dd78b2b commit 12a306e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polyfill/lib/calendar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ const helperChinese = ObjectAssign({}, nonIsoHelperBase, {
19511951
}
19521952
},
19531953
getMonthList(calendarYear, cache) {
1954-
assert(calendarYear, 'getMonthList called on undefined year');
1954+
assert(calendarYear !== undefined, 'getMonthList called on undefined year');
19551955
const key = OneObjectCache.generateMonthListKey(calendarYear);
19561956
const cached = cache.get(key);
19571957
if (cached) return cached;

0 commit comments

Comments
 (0)