Temporal: Adjust order of operations in Calendar.___fromFields

This implements the normative change in
https://github.com/tc39/proposal-temporal/pull/2377 which reached
consensus at the September 2022 TC39 meeting.

It changes the order in which observable operations are performed on the
values passed to the ___fromFields methods of Calendar.
This commit is contained in:
Philip Chimento 2022-09-14 15:29:36 -07:00 committed by Ms2ger
parent 4569e73420
commit ce2061eccd
6 changed files with 18 additions and 18 deletions

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.day",
"get fields.day.valueOf",
"call fields.day.valueOf",
@ -24,6 +21,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.day",
"get fields.day.valueOf",
"call fields.day.valueOf",
@ -24,6 +21,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.month",
"get fields.month.valueOf",
"call fields.month.valueOf",
@ -21,6 +18,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.day",
"get fields.day.valueOf",
"call fields.day.valueOf",
@ -30,6 +27,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.day",
"get fields.day.valueOf",
"call fields.day.valueOf",
@ -30,6 +27,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];

View File

@ -9,9 +9,6 @@ features: [Temporal]
---*/
const expected = [
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
"get fields.era",
"get fields.era.toString",
"call fields.era.toString",
@ -27,6 +24,9 @@ const expected = [
"get fields.year",
"get fields.year.valueOf",
"call fields.year.valueOf",
"get options.overflow",
"get options.overflow.toString",
"call options.overflow.toString",
];
const actual = [];