Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 7b5c5fc

Browse files
committed
fixup! [js-api] Add support for exceptions.
1 parent eb92b3a commit 7b5c5fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

document/js-api/index.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,8 @@ interface Exception {
11631163
An {{Exception}} value represents a type of exception.
11641164
{{Exception}} values have an <dfn for=Exception>exception tag</dfn>.
11651165

1166-
The <dfn for=Exception>payload types</dfn> of an {{Exception}} is the [=list=] of types of
1166+
The <dfn for=Exception>payload types</dfn> of an {{Exception}} is the [=list=] of types associated
1167+
with its [=Exception/exception tag=].
11671168

11681169

11691170
<h4 id="runtime-exceptions">Runtime exceptions</h4>
@@ -1180,15 +1181,13 @@ A {{RuntimeException}} value represents an [=exnref=] value.
11801181
{{RuntimeException}} values have an <dfn for=RuntimeException>internal exception</dfn>, which
11811182
is an [=event address=].
11821183

1183-
Issue: Should it be possible to construct {{RuntimeException}} objects from JavaScript? Only with
1184-
the [=JavaScript exception tag=] or also with others? How?
11851184
<div algorithm>
11861185

11871186
The <dfn constructor for=RuntimeException
11881187
lt="RuntimeException(exceptionType, payload)">new RuntimeException(|exceptionType|, |payload|)</dfn>
11891188
constructor steps are:
11901189

1191-
1. Let |types| be |exceptionType|'s [=Exception/exception tag=]'s [=list=] of types.
1190+
1. Let |types| be |exceptionType|'s [=Exception/payload types=].
11921191
1. If |types|'s [=list/size=] is not |payload|'s [=list/size=],
11931192
1. Throw a {{TypeError}}.
11941193
1. Let |wasmPayload| be « ».

0 commit comments

Comments
 (0)