Skip to content

Commit c9714a6

Browse files
authored
Upgrade ecmarkup to v18.2.0 (tc39#72)
1 parent dc92ab9 commit c9714a6

File tree

4 files changed

+45
-25
lines changed

4 files changed

+45
-25
lines changed

.github/workflows/test.yml

+18
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,21 @@ jobs:
4242
cache: 'npm'
4343
- run: npm ci
4444
- run: npm run lint
45+
46+
build:
47+
name: "Build Spec"
48+
runs-on: ubuntu-latest
49+
50+
strategy:
51+
matrix:
52+
node-version: [18.x]
53+
54+
steps:
55+
- uses: actions/checkout@v3
56+
- name: Use Node.js ${{ matrix.node-version }}
57+
uses: actions/setup-node@v3
58+
with:
59+
node-version: ${{ matrix.node-version }}
60+
cache: 'npm'
61+
- run: npm ci
62+
- run: npm run build

package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@tc39/ecma262-biblio": "^2.1.2517",
3030
"@types/mocha": "10.0.1",
3131
"@types/node": "18.11.18",
32-
"ecmarkup": "^16.1.1",
32+
"ecmarkup": "^18.2.0",
3333
"mocha": "10.2.0",
3434
"prettier": "2.8.7",
3535
"typescript": "4.9.4"

spec.html

+11-9
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,13 @@ <h1>
323323
1. Let _handler_ be _reaction_.[[Handler]].
324324
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_handler_.[[AsyncContextSnapshot]]).</ins>
325325
1. If _handler_ is ~empty~, then
326-
1. If _type_ is ~Fulfill~, let _handlerResult_ be NormalCompletion(_argument_).
326+
1. If _type_ is ~fulfill~, then
327+
1. let _handlerResult_ be NormalCompletion(_argument_).
327328
1. Else,
328-
1. Assert: _type_ is ~Reject~.
329+
1. Assert: _type_ is ~reject~.
329330
1. Let _handlerResult_ be ThrowCompletion(_argument_).
330-
1. Else, let _handlerResult_ be Completion(HostCallJobCallback(_handler_, *undefined*, « _argument_ »)).
331+
1. Else,
332+
1. let _handlerResult_ be Completion(HostCallJobCallback(_handler_, *undefined*, « _argument_ »)).
331333
1. If _promiseCapability_ is *undefined*, then
332334
1. Assert: _handlerResult_ is not an abrupt completion.
333335
1. <ins>AsyncContextSwap(_previousContextMapping_).</ins>
@@ -495,7 +497,7 @@ <h1>
495497
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
496498
1. <ins>Else,</ins>
497499
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to ~empty~.</ins>
498-
1. Set _generator_.[[GeneratorState]] to ~suspendedStart~.
500+
1. Set _generator_.[[GeneratorState]] to ~suspended-start~.
499501
1. Return ~unused~.
500502
</emu-alg>
501503
</emu-clause>
@@ -534,7 +536,7 @@ <h1>
534536
<emu-alg>
535537
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
536538
1. If _state_ is ~completed~, return CreateIterResultObject(*undefined*, *true*).
537-
1. Assert: _state_ is either ~suspendedStart~ or ~suspendedYield~.
539+
1. Assert: _state_ is either ~suspended-start~ or ~suspended-yield~.
538540
1. Let _genContext_ be _generator_.[[GeneratorContext]].
539541
1. Let _methodContext_ be the running execution context.
540542
1. Suspend _methodContext_.
@@ -565,15 +567,15 @@ <h1>
565567
</dl>
566568
<emu-alg>
567569
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
568-
1. If _state_ is ~suspendedStart~, then
570+
1. If _state_ is ~suspended-start~, then
569571
1. Set _generator_.[[GeneratorState]] to ~completed~.
570572
1. NOTE: Once a generator enters the ~completed~ state it never leaves it and its associated execution context is never resumed. Any execution state associated with _generator_ can be discarded at this point.
571573
1. Set _state_ to ~completed~.
572574
1. If _state_ is ~completed~, then
573575
1. If _abruptCompletion_.[[Type]] is ~return~, then
574576
1. Return CreateIterResultObject(_abruptCompletion_.[[Value]], *true*).
575577
1. Return ? _abruptCompletion_.
576-
1. Assert: _state_ is ~suspendedYield~.
578+
1. Assert: _state_ is ~suspended-yield~.
577579
1. Let _genContext_ be _generator_.[[GeneratorContext]].
578580
1. Let _methodContext_ be the running execution context.
579581
1. Suspend _methodContext_.
@@ -699,7 +701,7 @@ <h1>
699701
1. Return *undefined*.
700702
1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context, _closure_ will be called with no arguments.
701703
1. Set _generator_.[[AsyncGeneratorContext]] to _genContext_.
702-
1. Set _generator_.[[AsyncGeneratorState]] to ~suspendedStart~.
704+
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
703705
1. Set _generator_.[[AsyncGeneratorQueue]] to a new empty List.
704706
1. <ins>If _generatorBody_ is a |FunctionBody| Parse Node, then</ins>
705707
1. <ins>Set _generator_.[[AsyncGeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
@@ -738,7 +740,7 @@ <h1>
738740
<dl class="header">
739741
</dl>
740742
<emu-alg>
741-
1. Assert: _generator_.[[AsyncGeneratorState]] is either ~suspendedStart~ or ~suspendedYield~.
743+
1. Assert: _generator_.[[AsyncGeneratorState]] is either ~suspended-start~ or ~suspended-yield~.
742744
1. Let _genContext_ be _generator_.[[AsyncGeneratorContext]].
743745
1. Let _callerContext_ be the running execution context.
744746
1. Suspend _callerContext_.

0 commit comments

Comments
 (0)