1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

LibJS: Add timeZoneName: "critical" option to ZonedDateTime.toString()

This is a normative change in the Temporal spec.

See: d84937f
This commit is contained in:
Luke Wilde 2022-11-02 19:40:49 +00:00 committed by Linus Groh
parent 4a167cfbec
commit b26b18a0bc
3 changed files with 8 additions and 4 deletions

View file

@ -72,6 +72,7 @@ describe("correct behavior", () => {
const values = [
["auto", "2021-11-03T01:33:05.1002003+00:00[UTC]"],
["never", "2021-11-03T01:33:05.1002003+00:00"],
["critical", "2021-11-03T01:33:05.1002003+00:00[!UTC]"],
];
for (const [timeZoneName, expected] of values) {