Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Reference ECMA-262 RequireInternalSlot and string-concatenation #387

Merged
merged 3 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spec/biblio.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
"https://tc39.github.io/ecma262/": [
{
"type": "op",
"aoid": "RequireInternalSlot",
"id": "sec-requireinternalslot"
},
{
"type": "term",
"term": "string-concatenation",
"refId": "sec-ecmascript-language-types-string-type",
"key": "string-concatenation"
}
],
"https://tc39.es/proposal-bigint/": [
{
"type": "op",
Expand Down
6 changes: 2 additions & 4 deletions spec/collator.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ <h1>get Intl.Collator.prototype.compare</h1>

<emu-alg>
1. Let _collator_ be *this* value.
1. If Type(_collator_) is not Object, throw a *TypeError* exception.
1. If _collator_ does not have an [[InitializedCollator]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_collator_, [[InitializedCollator]]).
1. If _collator_.[[BoundCompare]] is *undefined*, then
1. Let _F_ be a new built-in function object as defined in <emu-xref href="#sec-collator-compare-functions"></emu-xref>.
1. Set _F_.[[Collator]] to _collator_.
Expand Down Expand Up @@ -271,8 +270,7 @@ <h1>Intl.Collator.prototype.resolvedOptions ()</h1>

<emu-alg>
1. Let _collator_ be *this* value.
1. If Type(_collator_) is not Object, throw a *TypeError* exception.
1. If _collator_ does not have an [[InitializedCollator]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_collator_, [[InitializedCollator]]).
1. Let _options_ be ! ObjectCreate(%ObjectPrototype%).
1. For each row of <emu-xref href="#table-collator-resolvedoptions-properties"></emu-xref>, except the header row, in table order, do
1. Let _p_ be the Property value of the current row.
Expand Down
3 changes: 1 addition & 2 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,7 @@ <h1>Intl.DateTimeFormat.prototype.formatToParts ( _date_ )</h1>

<emu-alg>
1. Let _dtf_ be *this* value.
1. If Type(_dtf_) is not Object, throw a *TypeError* exception.
1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_dtf_, [[InitializedDateTimeFormat]]).
1. If _date_ is *undefined*, then
1. Let _x_ be Call(%Date_now%, *undefined*).
1. Else,
Expand Down
3 changes: 1 addition & 2 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@ <h1>Intl.NumberFormat.prototype.formatToParts ( _value_ )</h1>

<emu-alg>
1. Let _nf_ be the *this* value.
1. If Type(_nf_) is not Object, throw a *TypeError* exception.
1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_nf_, [[InitializedNumberFormat]]).
1. Let _x_ be ? ToNumeric(_value_).
1. Return ? FormatNumericToParts(_nf_, _x_).
</emu-alg>
Expand Down
6 changes: 2 additions & 4 deletions spec/pluralrules.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ <h1>Intl.PluralRules.prototype.select( _value_ )</h1>

<emu-alg>
1. Let _pr_ be the *this* value.
1. If Type(_pr_) is not Object, throw a *TypeError* exception.
1. If _pr_ does not have an [[InitializedPluralRules]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_pr_, [[InitializedPluralRules]]).
1. Let _n_ be ? ToNumber(_value_).
1. Return ? ResolvePlural(_pr_, _n_).
</emu-alg>
Expand All @@ -275,8 +274,7 @@ <h1>Intl.PluralRules.prototype.resolvedOptions ()</h1>

<emu-alg>
1. Let _pr_ be the *this* value.
1. If Type(_pr_) is not Object, throw a *TypeError* exception.
1. If _pr_ does not have an [[InitializedPluralRules]] internal slot, throw a *TypeError* exception.
1. Perform ? RequireInternalSlot(_pr_, [[InitializedPluralRules]]).
1. Let _options_ be ! ObjectCreate(%ObjectPrototype%).
1. For each row of <emu-xref href="#table-pluralrules-resolvedoptions-properties"></emu-xref>, except the header row, in table order, do
1. Let _p_ be the Property value of the current row.
Expand Down