Skip to content

Commit

Permalink
formatting (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jul 6, 2022
1 parent 0e04e2e commit fca4d4b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -17,3 +17,4 @@ jobs:
node-version: 16
- run: npm ci
- run: npm run build
- run: npm run check-format
4 changes: 3 additions & 1 deletion package.json
@@ -1,7 +1,9 @@
{
"private": true,
"scripts": {
"build": "mkdir -p dist && ecmarkup --strict --load-biblio @tc39/ecma262-biblio --verbose --js-out dist/ecmarkup.js --css-out dist/ecmarkup.css spec.html dist/index.html"
"build": "mkdir -p dist && ecmarkup --strict --load-biblio @tc39/ecma262-biblio --verbose --js-out dist/ecmarkup.js --css-out dist/ecmarkup.css spec.html dist/index.html",
"format": "emu-format --write spec.html",
"check-format": "emu-format --check spec.html"
},
"devDependencies": {
"@tc39/ecma262-biblio": "2.0.2334",
Expand Down
15 changes: 10 additions & 5 deletions spec.html
Expand Up @@ -43,7 +43,7 @@
}
</style>

<div id=metadata-block>
<div id="metadata-block">
<h1>Contributing to this Proposal</h1>
<p>This proposal is developed on GitHub with the help of the ECMAScript community. There are a number of ways to contribute to the development of this specification:</p>
<ul>
Expand Down Expand Up @@ -96,7 +96,8 @@ <h1>Well-Known Intrinsic Objects</h1>
<ins>`AsyncIterator.prototype`</ins>
</td>
<td>
An object that all standard built-in async iterator objects indirectly inherit from <p><ins>The initial value of the *"prototype"* data property of %AsyncIterator%; i.e., %AsyncIterator.prototype%</ins></p>
An object that all standard built-in async iterator objects indirectly inherit from
<p><ins>The initial value of the *"prototype"* data property of %AsyncIterator%; i.e., %AsyncIterator.prototype%</ins></p>
</td>
</tr>
<tr>
Expand All @@ -118,7 +119,8 @@ <h1>Well-Known Intrinsic Objects</h1>
<ins>`Iterator.prototype`</ins>
</td>
<td>
An object that all standard built-in iterator objects indirectly inherit from <p><ins>The initial value of the *"prototype"* data property of %Iterator%; i.e., %Iterator.prototype%</ins></p>
An object that all standard built-in iterator objects indirectly inherit from
<p><ins>The initial value of the *"prototype"* data property of %Iterator%; i.e., %Iterator.prototype%</ins></p>
</td>
</tr>
</table>
Expand All @@ -134,7 +136,7 @@ <h1>Operations on Iterator Objects</h1>
<emu-clause id="sec-getiteratordirect" type="abstract operation">
<h1>
GetIteratorDirect (
_obj_: an ECMAScript language value
_obj_: an ECMAScript language value,
): either a normal completion containing an IteratorRecord or a throw completion
</h1>
<dl class="header">
Expand All @@ -152,7 +154,7 @@ <h1>
<h1>
IteratorStep (
_iteratorRecord_: an Iterator Record,
<ins>optional value: an ECMAScript language value,</ins>
<ins>optional _value_: an ECMAScript language value,</ins>
): either a normal completion containing either an Object or *false*, or a throw completion
</h1>
<dl class="header">
Expand Down Expand Up @@ -220,6 +222,7 @@ <h1>Iterator ( )</h1>

<emu-clause id="sec-properties-of-the-iterator-constructor">
<h1>Properties of the Iterator Constructor</h1>

<emu-clause id="sec-iterator.prototype">
<h1>Iterator.prototype</h1>
<p>The initial value of Iterator.prototype is %Iterator.prototype%.</p>
Expand Down Expand Up @@ -297,6 +300,7 @@ <h1>The AsyncIterator Constructor</h1>
<li>is the initial value of the *AsyncIterator* property of the global object.</li>
<li>is designed to be subclassable. It may be used as the value of an *extends* clause of a class definition.</li>
</ul>

<emu-clause id="sec-asynciterator">
<h1>AsyncIterator ( )</h1>
<p>When the `AsyncIterator` function is called, the following steps are taken:</p>
Expand All @@ -309,6 +313,7 @@ <h1>AsyncIterator ( )</h1>

<emu-clause id="sec-properties-of-the-asynciterator-constructor">
<h1>Properties of the AsyncIterator Constructor</h1>

<emu-clause id="sec-asynciterator.prototype">
<h1>AsyncIterator.prototype</h1>
<p>The initial value of AsyncIterator.prototype is %AsyncIterator.prototype%.</p>
Expand Down

0 comments on commit fca4d4b

Please sign in to comment.