My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Temporal] Ensure that toLocaleString can use both dateStyle and timeStyle (#4791)

authored by

Tim Chevalier and committed by
GitHub
7d177749 58634f94

+48
+12
vendor/git/test262/test/intl402/Temporal/Instant/prototype/toLocaleString/datestyle-and-timestyle.js
··· 1 + // Copyright (C) 2025 Igalia, S.L. All rights reserved. 2 + // This code is governed by the BSD license found in the LICENSE file. 3 + 4 + /*--- 5 + esid: sec-temporal.instant.prototype.tolocalestring 6 + description: Using both dateStyle and timeStyle should not throw 7 + features: [Temporal] 8 + ---*/ 9 + 10 + const item = new Temporal.Instant(0n); 11 + var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" }); 12 + assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
+12
vendor/git/test262/test/intl402/Temporal/PlainDateTime/prototype/toLocaleString/datestyle-and-timestyle.js
··· 1 + // Copyright (C) 2025 Igalia, S.L. All rights reserved. 2 + // This code is governed by the BSD license found in the LICENSE file. 3 + 4 + /*--- 5 + esid: sec-temporal.plaindatetime.prototype.tolocalestring 6 + description: Using both dateStyle and timeStyle should not throw 7 + features: [Temporal] 8 + ---*/ 9 + 10 + const item = new Temporal.PlainDateTime(2000, 5, 2, 0, 0, 0, 0, 0, 0); 11 + var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" }); 12 + assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
+12
vendor/git/test262/test/intl402/Temporal/PlainTime/prototype/toLocaleString/datestyle-and-timestyle.js
··· 1 + // Copyright (C) 2025 Igalia, S.L. All rights reserved. 2 + // This code is governed by the BSD license found in the LICENSE file. 3 + 4 + /*--- 5 + esid: sec-temporal.plaintime.prototype.tolocalestring 6 + description: Using both dateStyle and timeStyle should not throw 7 + features: [Temporal] 8 + ---*/ 9 + 10 + const item = new Temporal.PlainTime(0, 0); 11 + var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" }); 12 + assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
+12
vendor/git/test262/test/intl402/Temporal/ZonedDateTime/prototype/toLocaleString/datestyle-and-timestyle.js
··· 1 + // Copyright (C) 2025 Igalia, S.L. All rights reserved. 2 + // This code is governed by the BSD license found in the LICENSE file. 3 + 4 + /*--- 5 + esid: sec-temporal.zoneddatetime.prototype.tolocalestring 6 + description: Using both dateStyle and timeStyle should not throw 7 + features: [Temporal] 8 + ---*/ 9 + 10 + const item = new Temporal.ZonedDateTime(0n, "UTC"); 11 + var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" }); 12 + assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");