mirror of https://github.com/tc39/test262.git
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:
parent
9c5ec87dba
commit
2d1a1b159e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue