Add feature tag for "Time Zone Canonicalization"

This commit is contained in:
André Bargull 2024-12-12 18:50:25 +01:00 committed by Philip Chimento
parent 2ea91c02d0
commit 75fddbd694
18 changed files with 21 additions and 15 deletions

View File

@ -92,6 +92,10 @@ import-defer
# https://github.com/tc39/proposal-iterator-sequencing
iterator-sequencing
# Time Zone Canonicalization
# https://github.com/tc39/proposal-canonical-tz
canonical-tz
## Standard language features
#
# Language features that have been included in a published version of the

View File

@ -4,6 +4,7 @@
/*---
esid: sec-initializedatetimeformat
description: Time zone identifiers are case-normalized
features: [canonical-tz]
---*/
const timeZoneIdentifiers = [

View File

@ -4,6 +4,7 @@
/*---
esid: sec-initializedatetimeformat
description: Time zone identifiers are not canonicalized before storing in internal slots
features: [canonical-tz]
---*/
const baseOptions = {

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
// "Etc/GMT-0" through "Etc/GMT-14" are OK

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Built-in time zones are parsed correctly out of valid strings
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const valids = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: ZonedDateTime.from does not canonicalize time zone IDs
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const calcutta = Temporal.ZonedDateTime.from('2020-01-01T00:00:00+05:30[Asia/Calcutta]');

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
// "Etc/GMT-0" through "Etc/GMT-14" are OK

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Time zone identifiers are case-normalized
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const timeZoneIdentifiers = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: IANA legacy names must be supported
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const legacyNames = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const testCases = [

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Time zone names are case-normalized
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const timeZone = 'eTc/gMt+1';

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Basic tests for time zone IDs
features: [Temporal]
features: [Temporal, canonical-tz]
---*/
const valid = [