···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.instant.prototype.tolocalestring
66+description: Using both dateStyle and timeStyle should not throw
77+features: [Temporal]
88+---*/
99+1010+const item = new Temporal.Instant(0n);
1111+var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" });
1212+assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plaindatetime.prototype.tolocalestring
66+description: Using both dateStyle and timeStyle should not throw
77+features: [Temporal]
88+---*/
99+1010+const item = new Temporal.PlainDateTime(2000, 5, 2, 0, 0, 0, 0, 0, 0);
1111+var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" });
1212+assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plaintime.prototype.tolocalestring
66+description: Using both dateStyle and timeStyle should not throw
77+features: [Temporal]
88+---*/
99+1010+const item = new Temporal.PlainTime(0, 0);
1111+var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" });
1212+assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");
···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.zoneddatetime.prototype.tolocalestring
66+description: Using both dateStyle and timeStyle should not throw
77+features: [Temporal]
88+---*/
99+1010+const item = new Temporal.ZonedDateTime(0n, "UTC");
1111+var result = item.toLocaleString("en", { dateStyle: "full", timeStyle: "full" });
1212+assert.sameValue(result.includes(":00"), true, "using both dateStyle and timeStyle should not throw");