-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move DurationSign from ECMA-402 and use real Duration objects
DurationSign no longer needs to be defined by Temporal, as it's now part of ECMA-402. However, when Temporal becomes part of ECMA-262, we do need to move DurationSign into ECMA-262. Put it in a <del> block in intl.html. We can keep the new definition in its current place in the spec while adjusting its ID. Once Temporal.Duration objects are introduced, there is no longer any need for Duration Records. So, make the ECMA-402 DurationSign accept a Temporal.Duration object (as it already did in Temporal), delete the ToDurationRecord operation and the Duration Record definition, and change several other operations from ECMA-402 to use Temporal.Duration objects instead of Duration Records. Temporarily, since these operations aren't yet in ecma402-biblio pending tc39/ecma402#943, add a JSON bibliography file so the references aren't dangling.
- Loading branch information
Showing
4 changed files
with
378 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"location": "https://tc39.es/ecma402/", | ||
"entries": [ | ||
{ | ||
"type": "op", | ||
"aoid": "FormatNumericHours", | ||
"id": "sec-formatnumerichours" | ||
}, | ||
{ | ||
"type": "op", | ||
"aoid": "FormatNumericMinutes", | ||
"id": "sec-formatnumericminutes" | ||
}, | ||
{ | ||
"type": "op", | ||
"aoid": "FormatNumericSeconds", | ||
"id": "sec-formatnumericseconds" | ||
}, | ||
{ | ||
"type": "op", | ||
"aoid": "NextUnitFractional", | ||
"id": "sec-nextunitfractional" | ||
}, | ||
{ | ||
"type": "op", | ||
"aoid": "ListFormatParts", | ||
"id": "sec-listformatparts" | ||
}, | ||
{ | ||
"type": "clause", | ||
"number": "Table 21", | ||
"id": "table-partition-duration-format-pattern" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.