Skip to content

Commit

Permalink
Editorial: Use intrinsics notation for well-known symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
linusg committed Jul 3, 2024
1 parent 92abfd2 commit 2a6dfe4
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 39 deletions.
10 changes: 5 additions & 5 deletions spec/annexes.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,19 @@ <h1>Additions and Changes That Introduce Incompatibilities with Prior Editions</
<emu-xref href="#sec-intl.datetimeformat.prototype.format"></emu-xref> In ECMA-402, 1<sup>st</sup> Edition, the *"length"* property of the function object _F_ was set to *+0*<sub>𝔽</sub>. In 2nd Edition, *"length"* is set to *1*<sub>𝔽</sub>.
</li>
<li>
<emu-xref href="#sec-intl.collator.prototype-@@tostringtag"></emu-xref> In ECMA-402, 7<sup></sup>th</sup> Edition, the @@toStringTag property of `Intl.Collator.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, @@toStringTag is set to *"Intl.Collator"*.
<emu-xref href="#sec-intl.collator.prototype-%symbol.tostringtag%"></emu-xref> In ECMA-402, 7<sup></sup>th</sup> Edition, the %Symbol.toStringTag% property of `Intl.Collator.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, %Symbol.toStringTag% is set to *"Intl.Collator"*.
</li>
<li>
<emu-xref href="#sec-intl.datetimeformat.prototype-@@tostringtag"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the @@toStringTag property of `Intl.DateTimeFormat.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, @@toStringTag is set to *"Intl.DateTimeFormat"*.
<emu-xref href="#sec-intl.datetimeformat.prototype-%symbol.tostringtag%"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the %Symbol.toStringTag% property of `Intl.DateTimeFormat.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, %Symbol.toStringTag% is set to *"Intl.DateTimeFormat"*.
</li>
<li>
<emu-xref href="#sec-intl.numberformat.prototype-@@tostringtag"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the @@toStringTag property of `Intl.NumberFormat.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, @@toStringTag is set to *"Intl.NumberFormat"*.
<emu-xref href="#sec-intl.numberformat.prototype-%symbol.tostringtag%"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the %Symbol.toStringTag% property of `Intl.NumberFormat.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, %Symbol.toStringTag% is set to *"Intl.NumberFormat"*.
</li>
<li>
<emu-xref href="#sec-intl.pluralrules.prototype-tostringtag"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the @@toStringTag property of `Intl.PluralRules.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, @@toStringTag is set to *"Intl.PluralRules"*.
<emu-xref href="#sec-intl.pluralrules.prototype-%symbol.tostringtag%"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the %Symbol.toStringTag% property of `Intl.PluralRules.prototype` was set to *"Object"*. In 8<sup>th</sup> Edition, %Symbol.toStringTag% is set to *"Intl.PluralRules"*.
</li>
<li>
<emu-xref href="#sec-Intl-toStringTag"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the @@toStringTag property of `Intl` was not defined. In 8<sup>th</sup> Edition, @@toStringTag is set to *"Intl"*.
<emu-xref href="#sec-intl-%symbol.tostringtag%"></emu-xref> In ECMA-402, 7<sup>th</sup> Edition, the %Symbol.toStringTag% property of `Intl` was not defined. In 8<sup>th</sup> Edition, %Symbol.toStringTag% is set to *"Intl"*.
</li>
<li>
<emu-xref href="#sec-intl-numberformat-constructor"></emu-xref> In ECMA-402, 8<sup>th</sup> 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 9<sup>th</sup> edition, and it no longer throws an error.
Expand Down
6 changes: 3 additions & 3 deletions spec/collator.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ <h1>Intl.Collator.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-intl.collator.prototype-@@tostringtag">
<h1>Intl.Collator.prototype [ @@toStringTag ]</h1>
<emu-clause id="sec-intl.collator.prototype-%symbol.tostringtag%" oldids="sec-intl.collator.prototype-@@tostringtag">
<h1>Intl.Collator.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>

<p>
Expand Down
6 changes: 3 additions & 3 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,11 @@ <h1>Intl.DateTimeFormat.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-intl.datetimeformat.prototype-@@tostringtag">
<h1>Intl.DateTimeFormat.prototype [ @@toStringTag ]</h1>
<emu-clause id="sec-intl.datetimeformat.prototype-%symbol.tostringtag%" oldids="sec-intl.datetimeformat.prototype-@@tostringtag">
<h1>Intl.DateTimeFormat.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>

<p>
Expand Down
6 changes: 3 additions & 3 deletions spec/displaynames.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ <h1>Intl.DisplayNames.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-Intl.DisplayNames.prototype-@@tostringtag">
<h1>Intl.DisplayNames.prototype[ @@toStringTag ]</h1>
<emu-clause id="sec-intl.displaynames.prototype-%symbol.tostringtag%" oldids="sec-Intl.DisplayNames.prototype-@@tostringtag">
<h1>Intl.DisplayNames.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
6 changes: 3 additions & 3 deletions spec/intl.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ <h1>The Intl Object</h1>
<emu-clause id="sec-value-properties-of-the-intl-object">
<h1>Value Properties of the Intl Object</h1>

<emu-clause id="sec-Intl-toStringTag">
<h1>Intl[ @@toStringTag ]</h1>
<emu-clause id="sec-intl-%symbol.tostringtag%" oldids="sec-Intl-toStringTag">
<h1>Intl [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
4 changes: 2 additions & 2 deletions spec/listformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ <h1>Intl.ListFormat.prototype.constructor</h1>
</emu-clause>

<emu-clause id="sec-Intl.ListFormat.prototype-toStringTag">
<h1>Intl.ListFormat.prototype [ @@toStringTag ]</h1>
<h1>Intl.ListFormat.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
6 changes: 3 additions & 3 deletions spec/locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ <h1>Intl.Locale.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-Intl.Locale.prototype-@@tostringtag">
<h1>Intl.Locale.prototype[ @@toStringTag ]</h1>
<emu-clause id="sec-intl.locale.prototype-%symbol.tostringtag%" oldids="sec-Intl.Locale.prototype-@@tostringtag">
<h1>Intl.Locale.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>

<p>
Expand Down
6 changes: 3 additions & 3 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ <h1>Intl.NumberFormat.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-intl.numberformat.prototype-@@tostringtag">
<h1>Intl.NumberFormat.prototype [ @@toStringTag ]</h1>
<emu-clause id="sec-intl.numberformat.prototype-%symbol.tostringtag%" oldids="sec-intl.numberformat.prototype-@@tostringtag">
<h1>Intl.NumberFormat.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
6 changes: 3 additions & 3 deletions spec/pluralrules.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ <h1>Intl.PluralRules.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-intl.pluralrules.prototype-tostringtag">
<h1>Intl.PluralRules.prototype [ @@toStringTag ]</h1>
<emu-clause id="sec-intl.pluralrules.prototype-%symbol.tostringtag%" oldids="sec-intl.pluralrules.prototype-tostringtag">
<h1>Intl.PluralRules.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
4 changes: 2 additions & 2 deletions spec/relativetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ <h1>Intl.RelativeTimeFormat.prototype.constructor</h1>
</emu-clause>

<emu-clause id="sec-Intl.RelativeTimeFormat.prototype-toStringTag">
<h1>Intl.RelativeTimeFormat.prototype[ @@toStringTag ]</h1>
<h1>Intl.RelativeTimeFormat.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down
18 changes: 9 additions & 9 deletions spec/segmenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ <h1>Intl.Segmenter.prototype.constructor</h1>
</p>
</emu-clause>

<emu-clause id="sec-intl.segmenter.prototype-@@tostringtag">
<h1>Intl.Segmenter.prototype [ @@toStringTag ]</h1>
<emu-clause id="sec-intl.segmenter.prototype-%symbol.tostringtag%" oldids="sec-intl.segmenter.prototype-@@tostringtag">
<h1>Intl.Segmenter.prototype [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down Expand Up @@ -242,9 +242,9 @@ <h1>%SegmentsPrototype%.containing ( _index_ )</h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-%segmentsprototype%-@@iterator">
<h1>%SegmentsPrototype% [ @@iterator ] ( )</h1>
<p>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:</p>
<emu-clause id="sec-%segmentsprototype%-%symbol.iterator%" oldids="sec-%segmentsprototype%-@@iterator">
<h1>%SegmentsPrototype% [ %Symbol.iterator% ] ( )</h1>
<p>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:</p>
<emu-alg>
1. Let _segments_ be the *this* value.
1. Perform ? RequireInternalSlot(_segments_, [[SegmentsSegmenter]]).
Expand Down Expand Up @@ -328,11 +328,11 @@ <h1>%SegmentIteratorPrototype%.next ( )</h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-%segmentiteratorprototype%.@@tostringtag">
<h1>%SegmentIteratorPrototype% [ @@toStringTag ]</h1>
<emu-clause id="sec-%segmentiteratorprototype%.%symbol.tostringtag%" oldids="sec-%segmentiteratorprototype%.@@tostringtag">
<h1>%SegmentIteratorPrototype% [ %Symbol.toStringTag% ]</h1>

<p>
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"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
Expand Down

0 comments on commit 2a6dfe4

Please sign in to comment.