From e1d46f7fdc2c865e5ea80a00f4f7e8a31d0e7ee1 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Thu, 3 Nov 2022 17:24:17 -0700 Subject: [PATCH] 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(). --- harness/temporalHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/temporalHelpers.js b/harness/temporalHelpers.js index 46de96db7c..ad68f585a6 100644 --- a/harness/temporalHelpers.js +++ b/harness/temporalHelpers.js @@ -1449,7 +1449,7 @@ var TemporalHelpers = { } }; // 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) { actual.push(`call ${formatPropertyName(methodName, objectName)}`); if (methodName in methodOverrides) {