Skip to content

Commit

Permalink
Normative: Define @@toStringTag for Intl namespace object
Browse files Browse the repository at this point in the history
  • Loading branch information
shvaikalesh authored and leobalter committed Aug 13, 2020
1 parent 81a1246 commit 83223c6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/annexes.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,8 @@ <h1>Additions and Changes That Introduce Incompatibilities with Prior Editions</
<li>
<emu-xref href="#sec-intl.pluralrules.prototype-tostringtag"></emu-xref> 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"*.
</li>
<li>
<emu-xref href="#sec-Intl-toStringTag"></emu-xref> In ECMA-402, 7th Edition, the @@toStringTag property of `Intl` was not defined. In 8th Edition, @@toStringTag is set to *"Intl"*.
</li>
</ul>
</emu-annex>
15 changes: 15 additions & 0 deletions spec/intl.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ <h1>The Intl Object</h1>
The Intl object has an internal slot, [[FallbackSymbol]], which is a new %Symbol% in the current realm with the [[Description]] *"IntlLegacyConstructedSymbol"*.
</p>

<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>

<p>
The initial value of the @@toStringTag property is the string value *"Intl"*.
</p>
<p>
This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
</p>
</emu-clause>
</emu-clause>

<emu-clause id="sec-constructor-properties-of-the-intl-object">
<h1>Constructor Properties of the Intl Object</h1>

Expand Down

0 comments on commit 83223c6

Please sign in to comment.