Skip to content
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
78 changes: 36 additions & 42 deletions spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,23 @@ <h1>Intl.DateTimeFormat ( [ _locales_ [ , _options_ ] ] )</h1>
1. Return _dateTimeFormat_.
</emu-alg>

<emu-normative-optional>

<emu-clause id="sec-chaindatetimeformat" type="abstract operation">
<h1>
ChainDateTimeFormat (
_dateTimeFormat_: an Intl.DateTimeFormat,
_newTarget_: an ECMAScript language value,
_this_: an ECMAScript language value,
): either a normal completion containing an Object or a throw completion
</h1>
<dl class="header">
</dl>
<emu-alg>
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _this_) is *true*, then
1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _dateTimeFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return _this_.
1. Return _dateTimeFormat_.
</emu-alg>
</emu-clause>
</emu-normative-optional>
<emu-clause id="sec-chaindatetimeformat" type="abstract operation" normative-optional>
<h1>
ChainDateTimeFormat (
_dateTimeFormat_: an Intl.DateTimeFormat,
_newTarget_: an ECMAScript language value,
_this_: an ECMAScript language value,
): either a normal completion containing an Object or a throw completion
</h1>
<dl class="header">
</dl>
<emu-alg>
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _this_) is *true*, then
1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _dateTimeFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return _this_.
1. Return _dateTimeFormat_.
</emu-alg>
</emu-clause>
</emu-clause>

<emu-clause id="sec-createdatetimeformat" type="abstract operation" oldids="sec-initializedatetimeformat,sec-todatetimeoptions">
Expand Down Expand Up @@ -1728,27 +1725,24 @@ <h1>ToLocalTime Records</h1>
</emu-table>
</emu-clause>

<emu-normative-optional>

<emu-clause id="sec-unwrapdatetimeformat" type="abstract operation">
<h1>
UnwrapDateTimeFormat (
_dtf_: an ECMAScript language value,
): either a normal completion containing an ECMAScript language value or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>
It returns the DateTimeFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.DateTimeFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
</dd>
</dl>
<emu-alg>
1. If _dtf_ is not an Object, throw a *TypeError* exception.
1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _dtf_) is *true*, then
1. Return ? Get(_dtf_, %Intl%.[[FallbackSymbol]]).
1. Return _dtf_.
</emu-alg>
</emu-clause>
</emu-normative-optional>
<emu-clause id="sec-unwrapdatetimeformat" type="abstract operation" normative-optional>
<h1>
UnwrapDateTimeFormat (
_dtf_: an ECMAScript language value,
): either a normal completion containing an ECMAScript language value or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>
It returns the DateTimeFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.DateTimeFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
</dd>
</dl>
<emu-alg>
1. If _dtf_ is not an Object, throw a *TypeError* exception.
1. If _dtf_ does not have an [[InitializedDateTimeFormat]] internal slot and ? OrdinaryHasInstance(%Intl.DateTimeFormat%, _dtf_) is *true*, then
1. Return ? Get(_dtf_, %Intl%.[[FallbackSymbol]]).
1. Return _dtf_.
</emu-alg>
</emu-clause>
</emu-clause>
</emu-clause>
11 changes: 0 additions & 11 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
}
</script>
<style>
emu-normative-optional {
border-left: 5px solid #ff6600;
padding: .5em;
display: block;
background: #ffeedd;
}
emu-normative-optional:before {
display: block;
color: #884400;
content: "NORMATIVE OPTIONAL";
}
#metadata-block {
margin: 4em 0;
padding: 10px;
Expand Down
78 changes: 36 additions & 42 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,23 @@ <h1>Intl.NumberFormat ( [ _locales_ [ , _options_ ] ] )</h1>
1. Return _numberFormat_.
</emu-alg>

<emu-normative-optional>

<emu-clause id="sec-chainnumberformat" type="abstract operation">
<h1>
ChainNumberFormat (
_numberFormat_: an Intl.NumberFormat,
_newTarget_: an ECMAScript language value,
_this_: an ECMAScript language value,
): either a normal completion containing an Object or a throw completion
</h1>
<dl class="header">
</dl>
<emu-alg>
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.NumberFormat%, _this_) is *true*, then
1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _numberFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return _this_.
1. Return _numberFormat_.
</emu-alg>
</emu-clause>
</emu-normative-optional>
<emu-clause id="sec-chainnumberformat" type="abstract operation" normative-optional>
<h1>
ChainNumberFormat (
_numberFormat_: an Intl.NumberFormat,
_newTarget_: an ECMAScript language value,
_this_: an ECMAScript language value,
): either a normal completion containing an Object or a throw completion
</h1>
<dl class="header">
</dl>
<emu-alg>
1. If _newTarget_ is *undefined* and ? OrdinaryHasInstance(%Intl.NumberFormat%, _this_) is *true*, then
1. Perform ? DefinePropertyOrThrow(_this_, %Intl%.[[FallbackSymbol]], PropertyDescriptor{ [[Value]]: _numberFormat_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return _this_.
1. Return _numberFormat_.
</emu-alg>
</emu-clause>
</emu-clause>

<emu-clause id="sec-setnumberformatdigitoptions" oldids="sec-setnfdigitoptions" type="abstract operation">
Expand Down Expand Up @@ -1364,28 +1361,25 @@ <h1>
</emu-alg>
</emu-clause>

<emu-normative-optional>

<emu-clause id="sec-unwrapnumberformat" type="abstract operation">
<h1>
UnwrapNumberFormat (
_nf_: an ECMAScript language value,
): either a normal completion containing an ECMAScript language value or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>
It returns the NumberFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.NumberFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
</dd>
</dl>
<emu-alg>
1. If _nf_ is not an Object, throw a *TypeError* exception.
1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot and ? OrdinaryHasInstance(%Intl.NumberFormat%, _nf_) is *true*, then
1. Return ? Get(_nf_, %Intl%.[[FallbackSymbol]]).
1. Return _nf_.
</emu-alg>
</emu-clause>
</emu-normative-optional>
<emu-clause id="sec-unwrapnumberformat" type="abstract operation" normative-optional>
<h1>
UnwrapNumberFormat (
_nf_: an ECMAScript language value,
): either a normal completion containing an ECMAScript language value or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>
It returns the NumberFormat instance of its input object, which is either the value itself or a value associated with it by %Intl.NumberFormat% according to the normative optional constructor mode of <emu-xref href="#legacy-constructor"></emu-xref>.
</dd>
</dl>
<emu-alg>
1. If _nf_ is not an Object, throw a *TypeError* exception.
1. If _nf_ does not have an [[InitializedNumberFormat]] internal slot and ? OrdinaryHasInstance(%Intl.NumberFormat%, _nf_) is *true*, then
1. Return ? Get(_nf_, %Intl%.[[FallbackSymbol]]).
1. Return _nf_.
</emu-alg>
</emu-clause>

<emu-clause id="sec-getnumberformatpattern" type="abstract operation">
<h1>
Expand Down