mirror of
https://github.com/tc39/test262.git
synced 2025-08-15 06:58:24 +02:00
18 lines
529 B
JavaScript
18 lines
529 B
JavaScript
// Copyright (C) 2022 André Bargull. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.zoneddatetime
|
|
description: >
|
|
ZonedDateTime constructor accepts all time zone identifiers from
|
|
Intl.supportedValuesOf.
|
|
features: [Temporal, Intl-enumeration]
|
|
---*/
|
|
|
|
// Ensure all identifiers are valid and canonical.
|
|
for (let id of Intl.supportedValuesOf("timeZone")) {
|
|
let instance = new Temporal.ZonedDateTime(0n, id);
|
|
|
|
assert.sameValue(instance.timeZoneId, id);
|
|
}
|