From 2a6dfe4fd94cd49104c89d5b5872c963c6b24204 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 3 Jul 2024 19:17:35 +0100 Subject: [PATCH] Editorial: Use intrinsics notation for well-known symbols See: https://github.com/tc39/ecma262/pull/1314 --- spec/annexes.html | 10 +++++----- spec/collator.html | 6 +++--- spec/datetimeformat.html | 6 +++--- spec/displaynames.html | 6 +++--- spec/intl.html | 6 +++--- spec/listformat.html | 4 ++-- spec/locale.html | 6 +++--- spec/numberformat.html | 6 +++--- spec/pluralrules.html | 6 +++--- spec/relativetimeformat.html | 4 ++-- spec/segmenter.html | 18 +++++++++--------- 11 files changed, 39 insertions(+), 39 deletions(-) diff --git a/spec/annexes.html b/spec/annexes.html index e0c62492..a9e3ad33 100644 --- a/spec/annexes.html +++ b/spec/annexes.html @@ -183,19 +183,19 @@

Additions and Changes That Introduce Incompatibilities with Prior Editions In ECMA-402, 1st Edition, the *"length"* property of the function object _F_ was set to *+0*𝔽. In 2nd Edition, *"length"* is set to *1*𝔽.
  • - In ECMA-402, 7th Edition, the @@toStringTag property of `Intl.Collator.prototype` was set to *"Object"*. In 8th Edition, @@toStringTag is set to *"Intl.Collator"*. + In ECMA-402, 7th Edition, the %Symbol.toStringTag% property of `Intl.Collator.prototype` was set to *"Object"*. In 8th Edition, %Symbol.toStringTag% is set to *"Intl.Collator"*.
  • - In ECMA-402, 7th Edition, the @@toStringTag property of `Intl.DateTimeFormat.prototype` was set to *"Object"*. In 8th Edition, @@toStringTag is set to *"Intl.DateTimeFormat"*. + In ECMA-402, 7th Edition, the %Symbol.toStringTag% property of `Intl.DateTimeFormat.prototype` was set to *"Object"*. In 8th Edition, %Symbol.toStringTag% is set to *"Intl.DateTimeFormat"*.
  • - In ECMA-402, 7th Edition, the @@toStringTag property of `Intl.NumberFormat.prototype` was set to *"Object"*. In 8th Edition, @@toStringTag is set to *"Intl.NumberFormat"*. + In ECMA-402, 7th Edition, the %Symbol.toStringTag% property of `Intl.NumberFormat.prototype` was set to *"Object"*. In 8th Edition, %Symbol.toStringTag% is set to *"Intl.NumberFormat"*.
  • - In ECMA-402, 7th Edition, the @@toStringTag property of `Intl.PluralRules.prototype` was set to *"Object"*. In 8th Edition, @@toStringTag is set to *"Intl.PluralRules"*. + In ECMA-402, 7th Edition, the %Symbol.toStringTag% property of `Intl.PluralRules.prototype` was set to *"Object"*. In 8th Edition, %Symbol.toStringTag% is set to *"Intl.PluralRules"*.
  • - In ECMA-402, 7th Edition, the @@toStringTag property of `Intl` was not defined. In 8th Edition, @@toStringTag is set to *"Intl"*. + In ECMA-402, 7th Edition, the %Symbol.toStringTag% property of `Intl` was not defined. In 8th Edition, %Symbol.toStringTag% is set to *"Intl"*.
  • In ECMA-402, 8th Edition, the NumberFormat constructor used to throw an error when style is *"currency"* and maximumFractionDigits was set to a value lower than the default fractional digits for that currency. This behaviour was corrected in the 9th edition, and it no longer throws an error. diff --git a/spec/collator.html b/spec/collator.html index f79b416a..9a029063 100644 --- a/spec/collator.html +++ b/spec/collator.html @@ -160,11 +160,11 @@

    Intl.Collator.prototype.constructor

    - -

    Intl.Collator.prototype [ @@toStringTag ]

    + +

    Intl.Collator.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.Collator"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.Collator"*.

    diff --git a/spec/datetimeformat.html b/spec/datetimeformat.html index 7b9dd70b..ff292f01 100644 --- a/spec/datetimeformat.html +++ b/spec/datetimeformat.html @@ -482,11 +482,11 @@

    Intl.DateTimeFormat.prototype.constructor

    - -

    Intl.DateTimeFormat.prototype [ @@toStringTag ]

    + +

    Intl.DateTimeFormat.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.DateTimeFormat"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.DateTimeFormat"*.

    diff --git a/spec/displaynames.html b/spec/displaynames.html index 2f647100..06906e51 100644 --- a/spec/displaynames.html +++ b/spec/displaynames.html @@ -134,11 +134,11 @@

    Intl.DisplayNames.prototype.constructor

    - -

    Intl.DisplayNames.prototype[ @@toStringTag ]

    + +

    Intl.DisplayNames.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.DisplayNames"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.DisplayNames"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/intl.html b/spec/intl.html index 8a612be9..ee9509e5 100644 --- a/spec/intl.html +++ b/spec/intl.html @@ -19,11 +19,11 @@

    The Intl Object

    Value Properties of the Intl Object

    - -

    Intl[ @@toStringTag ]

    + +

    Intl [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/listformat.html b/spec/listformat.html index 4391006f..9dca3979 100644 --- a/spec/listformat.html +++ b/spec/listformat.html @@ -121,10 +121,10 @@

    Intl.ListFormat.prototype.constructor

    -

    Intl.ListFormat.prototype [ @@toStringTag ]

    +

    Intl.ListFormat.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.ListFormat"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.ListFormat"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/locale.html b/spec/locale.html index 4e977e71..36490b1d 100644 --- a/spec/locale.html +++ b/spec/locale.html @@ -194,11 +194,11 @@

    Intl.Locale.prototype.constructor

    - -

    Intl.Locale.prototype[ @@toStringTag ]

    + +

    Intl.Locale.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.Locale"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.Locale"*.

    diff --git a/spec/numberformat.html b/spec/numberformat.html index 68cd005e..d36b86b4 100644 --- a/spec/numberformat.html +++ b/spec/numberformat.html @@ -326,11 +326,11 @@

    Intl.NumberFormat.prototype.constructor

    - -

    Intl.NumberFormat.prototype [ @@toStringTag ]

    + +

    Intl.NumberFormat.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.NumberFormat"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.NumberFormat"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/pluralrules.html b/spec/pluralrules.html index 1956bc37..4ae063d2 100644 --- a/spec/pluralrules.html +++ b/spec/pluralrules.html @@ -123,11 +123,11 @@

    Intl.PluralRules.prototype.constructor

    - -

    Intl.PluralRules.prototype [ @@toStringTag ]

    + +

    Intl.PluralRules.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.PluralRules"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.PluralRules"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/relativetimeformat.html b/spec/relativetimeformat.html index b8a19699..c36bffa6 100644 --- a/spec/relativetimeformat.html +++ b/spec/relativetimeformat.html @@ -148,10 +148,10 @@

    Intl.RelativeTimeFormat.prototype.constructor

    -

    Intl.RelativeTimeFormat.prototype[ @@toStringTag ]

    +

    Intl.RelativeTimeFormat.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.RelativeTimeFormat"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.RelativeTimeFormat"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. diff --git a/spec/segmenter.html b/spec/segmenter.html index eaefc094..2e30f57a 100644 --- a/spec/segmenter.html +++ b/spec/segmenter.html @@ -101,11 +101,11 @@

    Intl.Segmenter.prototype.constructor

    - -

    Intl.Segmenter.prototype [ @@toStringTag ]

    + +

    Intl.Segmenter.prototype [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Intl.Segmenter"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Intl.Segmenter"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. @@ -242,9 +242,9 @@

    %SegmentsPrototype%.containing ( _index_ )

    - -

    %SegmentsPrototype% [ @@iterator ] ( )

    -

    The `@@iterator` method is called on a Segments instance to create a Segment Iterator over its string using the locale and options of its constructing Intl.Segmenter instance. The following steps are taken:

    + +

    %SegmentsPrototype% [ %Symbol.iterator% ] ( )

    +

    The `%Symbol.iterator%` method is called on a Segments instance to create a Segment Iterator over its string using the locale and options of its constructing Intl.Segmenter instance. The following steps are taken:

    1. Let _segments_ be the *this* value. 1. Perform ? RequireInternalSlot(_segments_, [[SegmentsSegmenter]]). @@ -328,11 +328,11 @@

    %SegmentIteratorPrototype%.next ( )

    - -

    %SegmentIteratorPrototype% [ @@toStringTag ]

    + +

    %SegmentIteratorPrototype% [ %Symbol.toStringTag% ]

    - The initial value of the @@toStringTag property is the String value *"Segmenter String Iterator"*. + The initial value of the %Symbol.toStringTag% property is the String value *"Segmenter String Iterator"*.

    This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.