Temporal helpers: Track daysInMonth() in calendarObserver()

The Temporal.Calendar.prototype.daysInMonth() method is observably called
in a few places in the spec. It should be tracked on the object returned
from TemporalHelpers.calendarObserver().
This commit is contained in:
Philip Chimento 2022-11-03 17:24:17 -07:00 committed by Ms2ger
parent 22e01996f3
commit e1d46f7fdc
1 changed files with 1 additions and 1 deletions

View File

@ -1449,7 +1449,7 @@ var TemporalHelpers = {
} }
}; };
// Automatically generate the other methods that don't need any custom code // Automatically generate the other methods that don't need any custom code
["toString", "dateUntil", "era", "eraYear", "year", "month", "monthCode", "day", "fields", "mergeFields"].forEach((methodName) => { ["toString", "dateUntil", "era", "eraYear", "year", "month", "monthCode", "day", "daysInMonth", "fields", "mergeFields"].forEach((methodName) => {
trackingMethods[methodName] = function (...args) { trackingMethods[methodName] = function (...args) {
actual.push(`call ${formatPropertyName(methodName, objectName)}`); actual.push(`call ${formatPropertyName(methodName, objectName)}`);
if (methodName in methodOverrides) { if (methodName in methodOverrides) {