Skip to content

Commit

Permalink
Upgrade ecmarkup to v18.2.0 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas authored Feb 23, 2024
1 parent dc92ab9 commit c9714a6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 25 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,21 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint

build:
name: "Build Spec"
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@tc39/ecma262-biblio": "^2.1.2517",
"@types/mocha": "10.0.1",
"@types/node": "18.11.18",
"ecmarkup": "^16.1.1",
"ecmarkup": "^18.2.0",
"mocha": "10.2.0",
"prettier": "2.8.7",
"typescript": "4.9.4"
Expand Down
20 changes: 11 additions & 9 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@ <h1>
1. Let _handler_ be _reaction_.[[Handler]].
1. <ins>Let _previousContextMapping_ be AsyncContextSwap(_handler_.[[AsyncContextSnapshot]]).</ins>
1. If _handler_ is ~empty~, then
1. If _type_ is ~Fulfill~, let _handlerResult_ be NormalCompletion(_argument_).
1. If _type_ is ~fulfill~, then
1. let _handlerResult_ be NormalCompletion(_argument_).
1. Else,
1. Assert: _type_ is ~Reject~.
1. Assert: _type_ is ~reject~.
1. Let _handlerResult_ be ThrowCompletion(_argument_).
1. Else, let _handlerResult_ be Completion(HostCallJobCallback(_handler_, *undefined*, « _argument_ »)).
1. Else,
1. let _handlerResult_ be Completion(HostCallJobCallback(_handler_, *undefined*, « _argument_ »)).
1. If _promiseCapability_ is *undefined*, then
1. Assert: _handlerResult_ is not an abrupt completion.
1. <ins>AsyncContextSwap(_previousContextMapping_).</ins>
Expand Down Expand Up @@ -495,7 +497,7 @@ <h1>
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
1. <ins>Else,</ins>
1. <ins>Set _generator_.[[GeneratorAsyncContextMapping]] to ~empty~.</ins>
1. Set _generator_.[[GeneratorState]] to ~suspendedStart~.
1. Set _generator_.[[GeneratorState]] to ~suspended-start~.
1. Return ~unused~.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -534,7 +536,7 @@ <h1>
<emu-alg>
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
1. If _state_ is ~completed~, return CreateIterResultObject(*undefined*, *true*).
1. Assert: _state_ is either ~suspendedStart~ or ~suspendedYield~.
1. Assert: _state_ is either ~suspended-start~ or ~suspended-yield~.
1. Let _genContext_ be _generator_.[[GeneratorContext]].
1. Let _methodContext_ be the running execution context.
1. Suspend _methodContext_.
Expand Down Expand Up @@ -565,15 +567,15 @@ <h1>
</dl>
<emu-alg>
1. Let _state_ be ? GeneratorValidate(_generator_, _generatorBrand_).
1. If _state_ is ~suspendedStart~, then
1. If _state_ is ~suspended-start~, then
1. Set _generator_.[[GeneratorState]] to ~completed~.
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.
1. Set _state_ to ~completed~.
1. If _state_ is ~completed~, then
1. If _abruptCompletion_.[[Type]] is ~return~, then
1. Return CreateIterResultObject(_abruptCompletion_.[[Value]], *true*).
1. Return ? _abruptCompletion_.
1. Assert: _state_ is ~suspendedYield~.
1. Assert: _state_ is ~suspended-yield~.
1. Let _genContext_ be _generator_.[[GeneratorContext]].
1. Let _methodContext_ be the running execution context.
1. Suspend _methodContext_.
Expand Down Expand Up @@ -699,7 +701,7 @@ <h1>
1. Return *undefined*.
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.
1. Set _generator_.[[AsyncGeneratorContext]] to _genContext_.
1. Set _generator_.[[AsyncGeneratorState]] to ~suspendedStart~.
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-start~.
1. Set _generator_.[[AsyncGeneratorQueue]] to a new empty List.
1. <ins>If _generatorBody_ is a |FunctionBody| Parse Node, then</ins>
1. <ins>Set _generator_.[[AsyncGeneratorAsyncContextMapping]] to AsyncContextSnapshot().</ins>
Expand Down Expand Up @@ -738,7 +740,7 @@ <h1>
<dl class="header">
</dl>
<emu-alg>
1. Assert: _generator_.[[AsyncGeneratorState]] is either ~suspendedStart~ or ~suspendedYield~.
1. Assert: _generator_.[[AsyncGeneratorState]] is either ~suspended-start~ or ~suspended-yield~.
1. Let _genContext_ be _generator_.[[AsyncGeneratorContext]].
1. Let _callerContext_ be the running execution context.
1. Suspend _callerContext_.
Expand Down

0 comments on commit c9714a6

Please sign in to comment.