Skip to content

Commit

Permalink
Temporal: Adjust order of operations in Calendar.___fromFields
Browse files Browse the repository at this point in the history
This implements the normative change in
tc39/proposal-temporal#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.
  • Loading branch information
ptomato authored and Ms2ger committed Sep 15, 2022
1 parent 4569e73 commit ce2061e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = [];

Expand Down

0 comments on commit ce2061e

Please sign in to comment.