From fca4d4b8f5a6184e475bb05fd54637ec265e7756 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Wed, 6 Jul 2022 17:48:20 -0600 Subject: [PATCH] formatting (#191) --- .github/workflows/build.yml | 1 + package.json | 4 +++- spec.html | 15 ++++++++++----- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91dc06f..090b033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,3 +17,4 @@ jobs: node-version: 16 - run: npm ci - run: npm run build + - run: npm run check-format diff --git a/package.json b/package.json index 7800a4f..ad97807 100644 --- a/package.json +++ b/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", diff --git a/spec.html b/spec.html index 7c3cd5e..6b29ba6 100644 --- a/spec.html +++ b/spec.html @@ -43,7 +43,7 @@ } -
+

Contributing to this Proposal

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:

    @@ -96,7 +96,8 @@

    Well-Known Intrinsic Objects

    `AsyncIterator.prototype` - An object that all standard built-in async iterator objects indirectly inherit from

    The initial value of the *"prototype"* data property of %AsyncIterator%; i.e., %AsyncIterator.prototype%

    + An object that all standard built-in async iterator objects indirectly inherit from +

    The initial value of the *"prototype"* data property of %AsyncIterator%; i.e., %AsyncIterator.prototype%

    @@ -118,7 +119,8 @@

    Well-Known Intrinsic Objects

    `Iterator.prototype` - An object that all standard built-in iterator objects indirectly inherit from

    The initial value of the *"prototype"* data property of %Iterator%; i.e., %Iterator.prototype%

    + An object that all standard built-in iterator objects indirectly inherit from +

    The initial value of the *"prototype"* data property of %Iterator%; i.e., %Iterator.prototype%

    @@ -134,7 +136,7 @@

    Operations on Iterator Objects

    GetIteratorDirect ( - _obj_: an ECMAScript language value + _obj_: an ECMAScript language value, ): either a normal completion containing an IteratorRecord or a throw completion

    @@ -152,7 +154,7 @@

    IteratorStep ( _iteratorRecord_: an Iterator Record, - optional value: an ECMAScript language value, + optional _value_: an ECMAScript language value, ): either a normal completion containing either an Object or *false*, or a throw completion

    @@ -220,6 +222,7 @@

    Iterator ( )

    Properties of the Iterator Constructor

    +

    Iterator.prototype

    The initial value of Iterator.prototype is %Iterator.prototype%.

    @@ -297,6 +300,7 @@

    The AsyncIterator Constructor

  • is the initial value of the *AsyncIterator* property of the global object.
  • is designed to be subclassable. It may be used as the value of an *extends* clause of a class definition.
+

AsyncIterator ( )

When the `AsyncIterator` function is called, the following steps are taken:

@@ -309,6 +313,7 @@

AsyncIterator ( )

Properties of the AsyncIterator Constructor

+

AsyncIterator.prototype

The initial value of AsyncIterator.prototype is %AsyncIterator.prototype%.