This repository was archived by the owner on Apr 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1163,7 +1163,8 @@ interface Exception {
1163
1163
An {{Exception}} value represents a type of exception.
1164
1164
{{Exception}} values have an <dfn for=Exception>exception tag</dfn> .
1165
1165
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=] .
1167
1168
1168
1169
1169
1170
<h4 id="runtime-exceptions">Runtime exceptions</h4>
@@ -1180,15 +1181,13 @@ A {{RuntimeException}} value represents an [=exnref=] value.
1180
1181
{{RuntimeException}} values have an <dfn for=RuntimeException>internal exception</dfn> , which
1181
1182
is an [=event address=] .
1182
1183
1183
- Issue: Should it be possible to construct {{RuntimeException}} objects from JavaScript? Only with
1184
- the [=JavaScript exception tag=] or also with others? How?
1185
1184
<div algorithm>
1186
1185
1187
1186
The <dfn constructor for=RuntimeException
1188
1187
lt="RuntimeException(exceptionType, payload)"> new RuntimeException(|exceptionType|, |payload|)</dfn>
1189
1188
constructor steps are:
1190
1189
1191
- 1. Let |types| be |exceptionType|'s [=Exception/exception tag=]' s [=list=] of types .
1190
+ 1. Let |types| be |exceptionType|'s [=Exception/payload types=] .
1192
1191
1. If |types|'s [=list/size=] is not |payload|' s [=list/size=] ,
1193
1192
1. Throw a {{TypeError}} .
1194
1193
1. Let |wasmPayload| be « ».
You can’t perform that action at this time.
0 commit comments