Skip to content

Commit

Permalink
✨ 2024 -> 2025 + Ben
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcpip authored and ben-allen committed Oct 29, 2024
1 parent 9873798 commit 0ae6386
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 37 deletions.
2 changes: 1 addition & 1 deletion spec/collator.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ <h1>
<dd>
The returned Number represents the result of an implementation-defined locale-sensitive String comparison of _x_ with _y_.
The result is intended to correspond with a sort order of String values according to the effective locale and collation options of _collator_, and will be negative when _x_ is ordered before _y_, positive when _x_ is ordered after _y_, and zero in all other cases (representing no relative ordering between _x_ and _y_).
String values must be interpreted as UTF-16 code unit sequences as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and a surrogate pair (a code unit in the range 0xD800 to 0xDBFF followed by a code unit in the range 0xDC00 to 0xDFFF) within a string must be interpreted as the corresponding code point.
String values must be interpreted as UTF-16 code unit sequences as described in es2025, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and a surrogate pair (a code unit in the range 0xD800 to 0xDBFF followed by a code unit in the range 0xDC00 to 0xDFFF) within a string must be interpreted as the corresponding code point.
</dd>
</dl>

Expand Down
2 changes: 1 addition & 1 deletion spec/conformance.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<emu-clause id="conformance">
<h1>Conformance</h1>
<p>
A conforming implementation of this specification must conform to the ECMAScript 2024 Language Specification (ECMA-262 15<sup>th</sup> Edition, or successor), and must provide and support all the objects, properties, functions, and program semantics described in this specification. Nothing in this specification is intended to allow behaviour that is otherwise prohibited by ECMA-262, and any such conflict should be considered an editorial error rather than an override of constraints from ECMA-262.
A conforming implementation of this specification must conform to the ECMAScript 2025 Language Specification (ECMA-262 16<sup>th</sup> Edition, or successor), and must provide and support all the objects, properties, functions, and program semantics described in this specification. Nothing in this specification is intended to allow behaviour that is otherwise prohibited by ECMA-262, and any such conflict should be considered an editorial error rather than an override of constraints from ECMA-262.
</p>
<p>
A conforming implementation is permitted to provide additional objects, properties, and functions beyond those described in this specification. In particular, a conforming implementation is permitted to provide properties not described in this specification, and values for those properties, for objects that are described herein. A conforming implementation is not permitted to add optional arguments to the functions defined in this specification.
Expand Down
12 changes: 6 additions & 6 deletions spec/conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<h1>Notational Conventions</h1>

<p>
This standard uses a subset of the notational conventions of the ECMAScript 2024 Language Specification (ECMA-262 15<sup>th</sup> Edition), as es2024:
This standard uses a subset of the notational conventions of the ECMAScript 2025 Language Specification (ECMA-262 16<sup>th</sup> Edition), as es2025:
</p>

<ul>
<li>Object Internal Methods and Internal Slots, as described in es2024, <emu-xref href="#sec-object-internal-methods-and-internal-slots"></emu-xref>.</li>
<li>Algorithm conventions, as described in es2024, <emu-xref href="#sec-algorithm-conventions"></emu-xref>, and the use of abstract operations, as described in es2024, <emu-xref href="#sec-type-conversion"></emu-xref>, <emu-xref href="#sec-testing-and-comparison-operations"></emu-xref>, <emu-xref href="#sec-operations-on-objects"></emu-xref>, <emu-xref href="#sec-operations-on-iterator-objects"></emu-xref>.</li>
<li>Internal Slots, as described in es2024, <emu-xref href="#sec-ordinary-object-internal-methods-and-internal-slots"></emu-xref>.</li>
<li>The List and Record Specification Type, as described in es2024, <emu-xref href="#sec-list-and-record-specification-type"></emu-xref>.</li>
<li>Object Internal Methods and Internal Slots, as described in es2025, <emu-xref href="#sec-object-internal-methods-and-internal-slots"></emu-xref>.</li>
<li>Algorithm conventions, as described in es2025, <emu-xref href="#sec-algorithm-conventions"></emu-xref>, and the use of abstract operations, as described in es2025, <emu-xref href="#sec-type-conversion"></emu-xref>, <emu-xref href="#sec-testing-and-comparison-operations"></emu-xref>, <emu-xref href="#sec-operations-on-objects"></emu-xref>, <emu-xref href="#sec-operations-on-iterator-objects"></emu-xref>.</li>
<li>Internal Slots, as described in es2025, <emu-xref href="#sec-ordinary-object-internal-methods-and-internal-slots"></emu-xref>.</li>
<li>The List and Record Specification Type, as described in es2025, <emu-xref href="#sec-list-and-record-specification-type"></emu-xref>.</li>
</ul>

<emu-note>
Expand All @@ -28,7 +28,7 @@ <h1>Notational Conventions</h1>
<h1>Well-Known Intrinsic Objects</h1>

<p>
The following table extends the Well-Known Intrinsic Objects table defined in es2024, <emu-xref href="#sec-well-known-intrinsic-objects"></emu-xref>.
The following table extends the Well-Known Intrinsic Objects table defined in es2025, <emu-xref href="#sec-well-known-intrinsic-objects"></emu-xref>.
</p>

<emu-table id="table-402-well-known-intrinsic-objects">
Expand Down
4 changes: 2 additions & 2 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ <h1>
</h1>
<dl class="header">
<dt>description</dt>
<dd>It interprets _x_ as a time value as specified in es2024, <emu-xref href="#sec-time-values-and-time-range"></emu-xref>, and creates the corresponding parts according to the effective locale and the formatting options of _dateTimeFormat_.</dd>
<dd>It interprets _x_ as a time value as specified in es2025, <emu-xref href="#sec-time-values-and-time-range"></emu-xref>, and creates the corresponding parts according to the effective locale and the formatting options of _dateTimeFormat_.</dd>
</dl>
<emu-alg>
1. Let _x_ be TimeClip(_x_).
Expand Down Expand Up @@ -1569,7 +1569,7 @@ <h1>
</h1>
<dl class="header">
<dt>description</dt>
<dd>It interprets _x_ and _y_ as time values as specified in es2024, <emu-xref href="#sec-time-values-and-time-range"></emu-xref>, and creates the corresponding parts according to the effective locale and the formatting options of _dateTimeFormat_.</dd>
<dd>It interprets _x_ and _y_ as time values as specified in es2025, <emu-xref href="#sec-time-values-and-time-range"></emu-xref>, and creates the corresponding parts according to the effective locale and the formatting options of _dateTimeFormat_.</dd>
</dl>
<emu-alg>
1. Set _x_ to TimeClip(_x_).
Expand Down
2 changes: 1 addition & 1 deletion spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
</style>
<pre class=metadata>
title: ECMAScript&reg; 2024 Internationalization API Specification
title: ECMAScript&reg; 2025 Internationalization API Specification
shortname: ECMA-402
status: draft
location: https://tc39.es/ecma402/
Expand Down
6 changes: 5 additions & 1 deletion spec/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h1>Introduction</h1>
This specification's source can be found at <a href="https://github.com/tc39/ecma402">https://github.com/tc39/ecma402</a>.
</p>
<p>
The ECMAScript 2024 Internationalization API Specification (ECMA-402 11<sup>th</sup> Edition), provides key language sensitive functionality as a complement to the ECMAScript 2024 Language Specification (ECMA-262 15<sup>th</sup> Edition or successor). Its functionality has been selected from that of well-established internationalization APIs such as those of the <dfn id="icu">Internationalization Components for Unicode (ICU) library</dfn> (<a href="https://unicode-org.github.io/icu-docs/">https://unicode-org.github.io/icu-docs/</a>), of the .NET framework, or of the Java platform.
The ECMAScript 2025 Internationalization API Specification (ECMA-402 12<sup>th</sup> Edition), provides key language sensitive functionality as a complement to the ECMAScript 2025 Language Specification (ECMA-262 16<sup>th</sup> Edition or successor). Its functionality has been selected from that of well-established internationalization APIs such as those of the <dfn id="icu">Internationalization Components for Unicode (ICU) library</dfn> (<a href="https://unicode-org.github.io/icu-docs/">https://unicode-org.github.io/icu-docs/</a>), of the .NET framework, or of the Java platform.
</p>
<p>
The 1<sup>st</sup> Edition API was developed by an ad-hoc group established by Ecma TC39 in September 2010 based on a proposal by Nebojša Ćirić and Jungshik Shin.
Expand Down Expand Up @@ -54,4 +54,8 @@ <h1>Introduction</h1>
Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 11<sup>th</sup> Edition Project Editors
</p>
<p>
Ben Allen, Richard Gibson, Ujjwal Sharma<br>
ECMA-402, 12<sup>th</sup> Edition Project Editors
</p>
</emu-intro>
32 changes: 16 additions & 16 deletions spec/locale-sensitive-functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>Properties of the String Prototype Object</h1>
<h1>String.prototype.localeCompare ( _that_ [ , _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-string.prototype.localecompare"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-string.prototype.localecompare"></emu-xref>.
</p>

<p>
Expand Down Expand Up @@ -48,11 +48,11 @@ <h1>String.prototype.localeCompare ( _that_ [ , _locales_ [ , _options_ ] ] )</h
<h1>String.prototype.toLocaleLowerCase ( [ _locales_ ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-string.prototype.tolocalelowercase"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-string.prototype.tolocalelowercase"></emu-xref>.
</p>

<p>
This function interprets a String value as a sequence of code points, as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>. The following steps are taken:
This function interprets a String value as a sequence of code points, as described in es2025, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>. The following steps are taken:
</p>

<emu-alg>
Expand All @@ -75,7 +75,7 @@ <h1>
</h1>
<dl class="header">
<dt>description</dt>
<dd>It interprets _S_ as a sequence of UTF-16 encoded code points, as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and returns the result of ILD transformation into _targetCase_ as a new String value.</dd>
<dd>It interprets _S_ as a sequence of UTF-16 encoded code points, as described in es2025, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>, and returns the result of ILD transformation into _targetCase_ as a new String value.</dd>
</dl>
<emu-alg>
1. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
Expand Down Expand Up @@ -109,11 +109,11 @@ <h1>
<h1>String.prototype.toLocaleUpperCase ( [ _locales_ ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-string.prototype.tolocaleuppercase"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-string.prototype.tolocaleuppercase"></emu-xref>.
</p>

<p>
This function interprets a String value as a sequence of code points, as described in es2024, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>. The following steps are taken:
This function interprets a String value as a sequence of code points, as described in es2025, <emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>. The following steps are taken:
</p>

<emu-alg>
Expand All @@ -132,14 +132,14 @@ <h1>String.prototype.toLocaleUpperCase ( [ _locales_ ] )</h1>
<h1>Properties of the Number Prototype Object</h1>

<p>
The following definition(s) refer to the abstract operation thisNumberValue as defined in es2024, <emu-xref href="#sec-properties-of-the-number-prototype-object"></emu-xref>.
The following definition(s) refer to the abstract operation thisNumberValue as defined in es2025, <emu-xref href="#sec-properties-of-the-number-prototype-object"></emu-xref>.
</p>

<emu-clause id="sup-number.prototype.tolocalestring">
<h1>Number.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-number.prototype.tolocalestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-number.prototype.tolocalestring"></emu-xref>.
</p>

<p>
Expand All @@ -158,14 +158,14 @@ <h1>Number.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>
<h1>Properties of the BigInt Prototype Object</h1>

<p>
The following definition(s) refer to the abstract operation thisBigIntValue as defined in es2024, <emu-xref href="#sec-properties-of-the-bigint-prototype-object"></emu-xref>.
The following definition(s) refer to the abstract operation thisBigIntValue as defined in es2025, <emu-xref href="#sec-properties-of-the-bigint-prototype-object"></emu-xref>.
</p>

<emu-clause id="sup-bigint.prototype.tolocalestring">
<h1>BigInt.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-bigint.prototype.tolocalestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-bigint.prototype.tolocalestring"></emu-xref>.
</p>

<p>
Expand All @@ -184,14 +184,14 @@ <h1>BigInt.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>
<h1>Properties of the Date Prototype Object</h1>

<p>
The following definition(s) refer to the abstract operation thisTimeValue as defined in es2024, <emu-xref href="#sec-properties-of-the-date-prototype-object"></emu-xref>.
The following definition(s) refer to the abstract operation thisTimeValue as defined in es2025, <emu-xref href="#sec-properties-of-the-date-prototype-object"></emu-xref>.
</p>

<emu-clause id="sup-date.prototype.tolocalestring">
<h1>Date.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-date.prototype.tolocalestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-date.prototype.tolocalestring"></emu-xref>.
</p>

<p>
Expand All @@ -212,7 +212,7 @@ <h1>Date.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>
<h1>Date.prototype.toLocaleDateString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-date.prototype.tolocaledatestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-date.prototype.tolocaledatestring"></emu-xref>.
</p>

<p>
Expand All @@ -233,7 +233,7 @@ <h1>Date.prototype.toLocaleDateString ( [ _locales_ [ , _options_ ] ] )</h1>
<h1>Date.prototype.toLocaleTimeString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-date.prototype.tolocaletimestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-date.prototype.tolocaletimestring"></emu-xref>.
</p>

<p>
Expand All @@ -258,7 +258,7 @@ <h1>Properties of the Array Prototype Object</h1>
<h1>Array.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-array.prototype.tolocalestring"></emu-xref>.
This definition supersedes the definition provided in es2025, <emu-xref href="#sec-array.prototype.tolocalestring"></emu-xref>.
</p>

<p>
Expand All @@ -283,7 +283,7 @@ <h1>Array.prototype.toLocaleString ( [ _locales_ [ , _options_ ] ] )</h1>
</emu-alg>

<emu-note>
This algorithm's steps mirror the steps taken in es2024, <emu-xref href="#sec-array.prototype.tolocalestring"></emu-xref>, with the exception that Invoke(_nextElement_, *"toLocaleString"*) now takes _locales_ and _options_ as arguments.
This algorithm's steps mirror the steps taken in es2025, <emu-xref href="#sec-array.prototype.tolocalestring"></emu-xref>, with the exception that Invoke(_nextElement_, *"toLocaleString"*) now takes _locales_ and _options_ as arguments.
</emu-note>

<emu-note>
Expand Down
1 change: 1 addition & 0 deletions spec/metablock.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ <h1>Contributing to this Specification</h1>
</li>
<li>Editors:
<ul>
<li><a href="mailto:[email protected]">Ben Allen</a> (<a href="https://github.com/ben-allen">@ben-allen</a>)</li>
<li><a href="mailto:[email protected]">Richard Gibson</a> (<a href="https://github.com/gibson042">@gibson042</a>)</li>
<li><a href="mailto:[email protected]">Ujjwal Sharma</a> (<a href="https://github.com/ryzokuken">@ryzokuken</a>)</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions spec/normative-references.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ <h1>Normative References</h1>
</p>

<p>
ECMAScript 2024 Language Specification (ECMA-262 15<sup>th</sup> Edition, or successor).<br>
ECMAScript 2025 Language Specification (ECMA-262 16<sup>th</sup> Edition, or successor).<br>
<a href="https://www.ecma-international.org/publications/standards/Ecma-262.htm">https://www.ecma-international.org/publications/standards/Ecma-262.htm</a>
</p>

<emu-note>
Throughout this document, the phrase “es2024, _x_” (where x is a sequence of numbers separated by periods) may be used as shorthand for "ECMAScript 2024 Language Specification (ECMA-262 15<sup>th</sup> Edition, sub clause _x_)". Where _x_ is followed by more such sequences of period-separated numbers, separated from each other by commas, each such sequence is also a shorthand for the corresponding sub clause of ECMA-262.
Throughout this document, the phrase “es2025, _x_” (where x is a sequence of numbers separated by periods) may be used as shorthand for "ECMAScript 2025 Language Specification (ECMA-262 16<sup>th</sup> Edition, sub clause _x_)". Where _x_ is followed by more such sequences of period-separated numbers, separated from each other by commas, each such sequence is also a shorthand for the corresponding sub clause of ECMA-262.
</emu-note>

<ul>
Expand Down
Loading

0 comments on commit 0ae6386

Please sign in to comment.