Skip to content

Commit 470c8f2

Browse files
authored
Update index.bs
1 parent 7154a97 commit 470c8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ To <dfn>create a suspending function</dfn> from a JavaScript function |func|, wi
15011501
1. Let |awaitResult| be the result of performing [$Completion$]([$Await$](|promise|)).
15021502
1. Note: This will suspend both this algorithm, and the WebAssembly function being invoked by the [=evaluate a Promising function=] algorithm. On return, |ret| will be either a normal completion or a throw completion.
15031503
1. If the entry for |async_context| in |map| is not [=paused=] then:
1504-
1. Perform [=throw a JavaScript exception=] with a {{RuntimeError}}.
1504+
1. Perform [=throw a JavaScript exception=] with a {{SuspendError}}.
15051505
1. Otherwise, set the entry to [=active=].
15061506
1. If |awaitResult|.\[[Type]] is <emu-const>throw</emu-const>, then:
15071507
1. Let |type|, |payload| and |opaqueData| be the result of [=coerce a JavaScript exception|coercing the JavaScript exception=] |ret|.\[[Value]].

0 commit comments

Comments
 (0)