Skip to content

Commit

Permalink
Update index.bs
Browse files Browse the repository at this point in the history
Some small fixes
  • Loading branch information
fgmccabe authored Sep 12, 2024
1 parent 2770d82 commit 5c5bdff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ Note: Exported Functions do not have a \[[Construct]] method and thus it is not
1. [=Clean up after running script=] with |relevant settings|.
1. Assert: |result|.\[[Type]] is <emu-const>throw</emu-const> or <emu-const>normal</emu-const>.
1. If |result|.\[[Type]] is <emu-const>throw</emu-const>, then:
1. Let |type|, |payload| and |opaquedata| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |result|.\[[Value]].
1. Let |type|, |payload| and |opaqueData| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |result|.\[[Value]].
1. [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|.
1. Otherwise, return |result|.\[[Value]].
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
Expand Down Expand Up @@ -1246,7 +1246,7 @@ To <dfn>create a suspending function</dfn> from a JavaScript function |func|, wi
1. [=Clean up after running script=] with |relevant settings|.
1. Assert: |ret|.\[[Type]] is <emu-const>throw</emu-const> or <emu-const>normal</emu-const>.
1. If |ret|.\[[Type]] is <emu-const>throw</emu-const>, then:
1. Let |type|, |payload| and |opaquedata| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |ret|.\[[Value]].
1. Let |type|, |payload| and |opaqueData| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |ret|.\[[Value]].
1. [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|.
1. Otherwise, if [=list/size=] of |ret| is 1 and [$IsPromise$](|ret|.\[[Value]][0]):
1. Let |promise| be |ret|.\[[Value]][0].
Expand All @@ -1272,7 +1272,7 @@ To <dfn>create a suspending function</dfn> from a JavaScript function |func|, wi
1. Return |funcaddr|.
</div>

<div definition>
<div dfn>
An [=execution context=] can be marked <dfn>Paused</dfn> to signal that the computation associated with the [=execution context=] has been paused.
</div>

Expand Down Expand Up @@ -1303,6 +1303,7 @@ The <dfn>Reject</dfn> abstract operation takes a continuation object |k|, an exc
1. If |ec| is not marked as [=Paused|paused=] then trap.
1. Mark |ec| as not [=Paused|paused=].
1. Push |ec| on to the [=Execution Context Stack=], making |ec| the current execution context.
1. Let |type|, |payload| and |opaqueData| be the result of performing [=coerce a JavaScript exception=} on |e|
1. Resume the operations defined by |k|, performing [=WebAssembly/Throw=] with |type|, |payload| and |opaqueData|.
</div>

Expand Down

0 comments on commit 5c5bdff

Please sign in to comment.