-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Create calendar record from calendar objects
When constructing a new Temporal object with a calendar object, eagerly get all the calendar methods, and save them in a Record, which goes into the Temporal object's [[CalendarRecord]] internal slot. _For internal use of the intrinsic constructors only_, in the polyfill constructors accept a calendar record object instead of a calendar object. This has no observable effect on user code, because user code can never obtain a calendar record object. Still to do: - spec text - inconsistency introduced between e.g. the calendar records in the objects returned from pdt.toPlainDate() (same as pdt) and pdt.with() (different from pdt if Calendar.prototype was mutated since pdt was created) See: #1294
- Loading branch information
Showing
37 changed files
with
835 additions
and
525 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.