mirror of https://github.com/tc39/test262.git
Temporal: Fix expectation for observable operations in Duration.p.round()
I had missed that there's an early return step from UnbalanceDurationRelative if years, months, weeks, and days are all 0. Closes: #3684
This commit is contained in:
parent
f5369c26a4
commit
77b559ce68
|
@ -202,9 +202,6 @@ assert.compareArray(actual, expectedOpsForMonthToYearBalancing, "order of operat
|
|||
actual.splice(0, actual.length); // clear
|
||||
|
||||
const expectedOpsForDayToMonthBalancing = expected.concat([
|
||||
// UnbalanceDurationRelative
|
||||
"get options.relativeTo.calendar.dateAdd", // 9.b
|
||||
"get options.relativeTo.calendar.dateUntil", // 9.c
|
||||
// BalanceDurationRelative
|
||||
"get options.relativeTo.calendar.dateAdd", // 11.a
|
||||
"call options.relativeTo.calendar.dateAdd", // 11.b MoveRelativeDate
|
||||
|
@ -216,8 +213,6 @@ assert.compareArray(actual, expectedOpsForDayToMonthBalancing, "order of operati
|
|||
actual.splice(0, actual.length); // clear
|
||||
|
||||
const expectedOpsForDayToWeekBalancing = expected.concat([
|
||||
// UnbalanceDurationRelative
|
||||
"get options.relativeTo.calendar.dateAdd", // 10.b
|
||||
// BalanceDurationRelative
|
||||
"get options.relativeTo.calendar.dateAdd", // 12.b
|
||||
"call options.relativeTo.calendar.dateAdd", // 12.c MoveRelativeDate
|
||||
|
|
Loading…
Reference in New Issue