Fix parameter names in TemporalHelpers.calendarDateAddUndefinedOptions

I used kind of misleading parameter names in this function, they are not
"one" and "two" of the same thing, but a Temporal.PlainDate and a
Temporal.Duration.
This commit is contained in:
Philip Chimento 2021-11-23 17:07:59 -08:00 committed by Rick Waldron
parent 9c5ec87dba
commit 2d1a1b159e
1 changed files with 2 additions and 2 deletions

View File

@ -942,10 +942,10 @@ var TemporalHelpers = {
return "dateadd-undef-options";
}
dateAdd(one, two, options) {
dateAdd(date, duration, options) {
this.dateAddCallCount++;
assert.sameValue(options, undefined, "dateAdd shouldn't be called with options");
return super.dateAdd(one, two, options);
return super.dateAdd(date, duration, options);
}
}
return new CalendarDateAddUndefinedOptions();