mirror of https://github.com/tc39/test262.git
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:
parent
22e01996f3
commit
e1d46f7fdc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue