@@ -402,7 +402,7 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
402
402
1. [=list/Append=] |externtable| to |imports|.
403
403
1. If |externtype| is of the form [=externtype/tag=] |attribute| <var ignore> functype</var> ,
404
404
1. Assert: |attribute| is [=tagtype/attribute/exception=] .
405
- 1. If |v| does not [=implement=] {{Exception }} , throw a {{LinkError}} exception.
405
+ 1. If |v| does not [=implement=] {{Tag }} , throw a {{LinkError}} exception.
406
406
1. Let |tag| be |v|.\[[Address]] .
407
407
1. Let |extern| be the [=external value=] [=external value/tag=] |tag|.
408
408
1. [=list/Append=] |extern| to |imports|.
@@ -443,7 +443,7 @@ The verification of WebAssembly type requirements is deferred to the
443
443
1. Assert: |attribute| is [=tagtype/attribute/exception=] .
444
444
1. Assert: |externval| is of the form [=external value/tag=] |tagaddr|.
445
445
1. Let [=external value/tag=] |tagaddr| be |externval|.
446
- 1. Let |exception| be [=create an Exception object|a new Exception object=] created from |tagaddr|.
446
+ 1. Let |exception| be [=create a Tag object|a new Tag object=] created from |tagaddr|.
447
447
1. Let |value| be |exception|.
448
448
1. Let |status| be ! [=CreateDataProperty=] (|exportsObject|, |name|, |value|).
449
449
1. Assert: |status| is true.
@@ -1205,7 +1205,7 @@ The <dfn method for="Tag">type()</dfn> method steps are:
1205
1205
1. Let |idlParameters| be «».
1206
1206
1. [=list/iterate|For each=] |type| of |parameters|,
1207
1207
1. [=list/Append=] [$FromValueType$] (|type|) to |idlParameters|.
1208
- 1. Return «[ "{{ExceptionType /parameters}}" → |idlParameters| ] ».
1208
+ 1. Return «[ "{{TagType /parameters}}" → |idlParameters| ] ».
1209
1209
1210
1210
</div>
1211
1211
@@ -1228,7 +1228,7 @@ To <dfn>create a RuntimeException object</dfn> from a [=tag address=] |tagAddres
1228
1228
of WebAssembly values |payload|, perform the following steps:
1229
1229
1230
1230
1. Let |store| be the [=surrounding agent=] 's [=associated store=] .
1231
- 1. Let |types| be [=exception_parameters =] (|store|, |tagAddress|).
1231
+ 1. Let |types| be [=tag_parameters =] (|store|, |tagAddress|).
1232
1232
1. Assert: |types|'s [=list/size=] is |payload|' s [=list/size=] .
1233
1233
1. [=list/iterate|For each=] |value| and |resultType| of |payload| and |types|, paired linearly,
1234
1234
1. Assert: |value|'s type matches |resultType|.
@@ -1242,16 +1242,16 @@ of WebAssembly values |payload|, perform the following steps:
1242
1242
<div algorithm>
1243
1243
1244
1244
The <dfn constructor for=RuntimeException
1245
- lt="RuntimeException(exceptionType , payload)"> new RuntimeException(|exceptionTag|, |payload|)</dfn>
1245
+ lt="RuntimeException(exceptionTag , payload)"> new RuntimeException(|exceptionTag|, |payload|)</dfn>
1246
1246
constructor steps are:
1247
1247
1248
- 1. Let |types| be [=exception_parameters =] (|exceptionTag|.\[[Address]] ).
1248
+ 1. Let |types| be [=tag_parameters =] (|exceptionTag|.\[[Address]] ).
1249
1249
1. If |types|'s [=list/size=] is not |payload|' s [=list/size=] ,
1250
1250
1. Throw a {{TypeError}} .
1251
1251
1. Let |wasmPayload| be « ».
1252
1252
1. [=list/iterate|For each=] |value| and |resultType| of |payload| and |types|, paired linearly,
1253
1253
1. [=list/Append=] ? [=ToWebAssemblyValue=] (|value|, |resultType|) to |wasmPayload|.
1254
- 1. Set **this**.\[[Type]] to |exceptionType |.\[[Address]] .
1254
+ 1. Set **this**.\[[Type]] to |exceptionTag |.\[[Address]] .
1255
1255
1. Set **this**.\[[Payload]] to |wasmPayload|.
1256
1256
1257
1257
</div>
@@ -1285,7 +1285,7 @@ The <dfn>JavaScript exception tag</dfn> is a [=tag address=] reserved by this
1285
1285
specification to distinguish exceptions originating from JavaScript.
1286
1286
1287
1287
For any [=associated store=] |store|, the result of
1288
- [=exception_parameters =] (|store|, [=JavaScript exception tag=] ) must be « [=externref=] ».
1288
+ [=tag_parameters =] (|store|, [=JavaScript exception tag=] ) must be « [=externref=] ».
1289
1289
1290
1290
Issue: Should it be possible for `br_on_exn` to extract the payload from an exception with this tag?
1291
1291
0 commit comments