ecma402
ecma402 copied to clipboard
Editorial: Use named records for DateTimeFormat format records
This PR aims to restructure Intl.DateTimeFormat Constructor - Internal Slots to use named Record types instead of ad-hoc records. In the process of this clean-up, some editorial bugs were found and fixed, see the commit messages for details.
In addition to providing a more type-safe approach when compared to using ad-hoc records, these changes should also help with the Temporal integration, see https://tc39.es/proposal-temporal/#sec-temporal-intl.
The PR applies on top of #822.
Fixed all review comments and rebased the commits to apply cleanly on tip.
Rebased again.
Do we still wait for another review or can we land these changes?
@anba I've rebased this onto the current main on my own fork: https://github.com/ben-allen/ecma402/tree/anba-826-working-branch. If you pull it in, I can merge.