Skip to content

Commit 2fa96c2

Browse files
rkirslingljharb
authored andcommitted
Editorial: Normalize code spacing (#1590)
- Add missing … escapes.
1 parent 25745fe commit 2fa96c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ <h1>Static Semantics</h1>
867867
<h1>Mathematical Operations</h1>
868868
<p>Mathematical operations such as addition, subtraction, negation, multiplication, division, and the mathematical functions defined later in this clause should always be understood as computing exact mathematical results on mathematical real numbers, which unless otherwise noted do not include infinities and do not include a negative zero that is distinguished from positive zero. Algorithms in this standard that model floating-point arithmetic include explicit steps, where necessary, to handle infinities and signed zero and to perform rounding. If a mathematical operation or function is applied to a floating-point number, it should be understood as being applied to the exact mathematical value represented by that floating-point number; such a floating-point number must be finite, and if it is *+0* or *-0* then the corresponding mathematical value is simply 0.</p>
869869
<p>The mathematical function <emu-eqn id="eqn-abs" aoid="abs">abs(_x_)</emu-eqn> produces the absolute value of _x_, which is <emu-eqn>-_x_</emu-eqn> if _x_ is negative (less than zero) and otherwise is _x_ itself.</p>
870-
<p>The mathematical function <emu-eqn id="eqn-min" aoid="min">min(_x1_, _x2_, ..., _xN_)</emu-eqn> produces the mathematically smallest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The mathematical function <emu-eqn id="eqn-max" aoid="max">max(_x1_, _x2_, ..., _xN_)</emu-eqn> produces the mathematically largest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The domain and range of these mathematical functions include *+&infin;* and *-&infin;*.</p>
870+
<p>The mathematical function <emu-eqn id="eqn-min" aoid="min">min(_x1_, _x2_, &hellip; , _xN_)</emu-eqn> produces the mathematically smallest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The mathematical function <emu-eqn id="eqn-max" aoid="max">max(_x1_, _x2_, &hellip; , _xN_)</emu-eqn> produces the mathematically largest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The domain and range of these mathematical functions include *+&infin;* and *-&infin;*.</p>
871871
<p>The notation &ldquo;<emu-eqn id="eqn-modulo" aoid="modulo">_x_ modulo _y_</emu-eqn>&rdquo; (_y_ must be finite and nonzero) computes a value _k_ of the same sign as _y_ (or zero) such that <emu-eqn>abs(_k_) &lt; abs(_y_) and _x_ - _k_ = _q_ &times; _y_</emu-eqn> for some integer _q_.</p>
872872
<p>The mathematical function <emu-eqn id="eqn-floor" aoid="floor">floor(_x_)</emu-eqn> produces the largest integer (closest to positive infinity) that is not larger than _x_.</p>
873873
<emu-note>
@@ -5198,7 +5198,7 @@ <h1>SetMutableBinding ( _N_, _V_, _S_ )</h1>
51985198
</emu-alg>
51995199
<emu-note>
52005200
<p>An example of ECMAScript code that results in a missing binding at step 2 is:</p>
5201-
<pre><code class="javascript">function f(){eval("var x; x = (delete x, 0);")}</code></pre>
5201+
<pre><code class="javascript">function f() { eval("var x; x = (delete x, 0);"); }</code></pre>
52025202
</emu-note>
52035203
</emu-clause>
52045204

@@ -19922,11 +19922,11 @@ <h1>Runtime Semantics: ClassDefinitionEvaluation</h1>
1992219922
1. If _constructor_ is ~empty~, then
1992319923
1. If |ClassHeritage_opt| is present, then
1992419924
1. Set _constructor_ to the result of parsing the source text
19925-
<pre><code class="javascript">constructor(... args){ super (...args);}</code></pre>
19925+
<pre><code class="javascript">constructor(...args) { super(...args); }</code></pre>
1992619926
using the syntactic grammar with the goal symbol |MethodDefinition[~Yield, ~Await]|.
1992719927
1. Else,
1992819928
1. Set _constructor_ to the result of parsing the source text
19929-
<pre><code class="javascript">constructor(){ }</code></pre>
19929+
<pre><code class="javascript">constructor() {}</code></pre>
1993019930
using the syntactic grammar with the goal symbol |MethodDefinition[~Yield, ~Await]|.
1993119931
1. Set the running execution context's LexicalEnvironment to _classScope_.
1993219932
1. Let _constructorInfo_ be the result of performing DefineMethod for _constructor_ with arguments _proto_ and _constructorParent_ as the optional _functionPrototype_ argument.
@@ -22281,7 +22281,7 @@ <h1>Source Text Module Records</h1>
2228122281
</tr>
2228222282
<tr>
2228322283
<td>
22284-
`export default function f(){}`
22284+
`export default function f() {}`
2228522285
</td>
2228622286
<td>
2228722287
`"default"`
@@ -22298,7 +22298,7 @@ <h1>Source Text Module Records</h1>
2229822298
</tr>
2229922299
<tr>
2230022300
<td>
22301-
`export default function(){}`
22301+
`export default function () {}`
2230222302
</td>
2230322303
<td>
2230422304
`"default"`
@@ -37317,7 +37317,7 @@ <h1>The AsyncGeneratorFunction Constructor</h1>
3731737317
</ul>
3731837318

3731937319
<emu-clause id="sec-asyncgeneratorfunction">
37320-
<h1>AsyncGeneratorFunction ( _p1_, _p2_, ..., _pn_, _body_ )</h1>
37320+
<h1>AsyncGeneratorFunction ( _p1_, _p2_, &hellip; , _pn_, _body_ )</h1>
3732137321
<p>The last argument specifies the body (executable code) of an async generator function; any preceding arguments specify formal parameters.</p>
3732237322
<p>When the `AsyncGeneratorFunction` function is called with some arguments _p1_, _p2_, &hellip; , _pn_, _body_ (where _n_ might be 0, that is, there are no "_p_" arguments, and where _body_ might also not be provided), the following steps are taken:</p>
3732337323
<emu-alg>
@@ -38728,7 +38728,7 @@ <h1>AsyncFunction ( _p1_, _p2_, &hellip; , _pn_, _body_ )</h1>
3872838728

3872938729
<p>The last argument specifies the body (executable code) of an async function. Any preceding arguments specify formal parameters.</p>
3873038730

38731-
<p>When the `AsyncFunction` function is called with some arguments _p1_, _p2_, &hellip;, _pn_, _body_ (where _n_ might be 0, that is, there are no _p_ arguments, and where _body_ might also not be provided), the following steps are taken:</p>
38731+
<p>When the `AsyncFunction` function is called with some arguments _p1_, _p2_, &hellip; , _pn_, _body_ (where _n_ might be 0, that is, there are no _p_ arguments, and where _body_ might also not be provided), the following steps are taken:</p>
3873238732

3873338733
<emu-alg>
3873438734
1. Let _C_ be the active function object.

0 commit comments

Comments
 (0)