Skip to content

Commit 24be425

Browse files
authored
Remove type() method from Tag object (#318)
This method mirrors the type methods on the other interfaces (Global, Memory, etc) as defined in the JS type reflection proposal (https://github.com/WebAssembly/js-types/blob/main/proposals/js-types/Overview.md) Since this proposal will be standardized first, JS types should be rebased on top of exception-handling, and this method should be moved there.
1 parent 4c93161 commit 24be425

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

document/js-api/index.bs

-16
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ dictionary TagType {
11991199
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
12001200
interface Tag {
12011201
constructor(TagType type);
1202-
TagType type();
12031202
};
12041203
</pre>
12051204

@@ -1244,21 +1243,6 @@ The <dfn constructor for="Tag" lt="Tag(type)">new Tag(|type|)</dfn> constructor
12441243

12451244
</div>
12461245

1247-
<div algorithm>
1248-
1249-
The <dfn method for="Tag">type()</dfn> method steps are:
1250-
1251-
1. Let |store| be the [=surrounding agent=]'s [=associated store=].
1252-
1. Let [|parameters|] → [] be [=tag_type=](|store|, **this**.\[[Address]]).
1253-
1. Let |idlParameters| be «».
1254-
1. [=list/iterate|For each=] |type| of |parameters|,
1255-
1. [=list/Append=] [$FromValueType$](|type|) to |idlParameters|.
1256-
1. Return «[ "{{TagType/parameters}}" → |idlParameters| ]».
1257-
1258-
Advisement: This method is only expected to be implemented or shipped when both this proposal and the Type Reflection proposal are implemented or shipped (respectively).
1259-
1260-
</div>
1261-
12621246
<h4 id="runtime-exceptions">Runtime exceptions</h4>
12631247

12641248
<pre class="idl">

test/js-api/tag/type.tentative.any.js

-21
This file was deleted.

0 commit comments

Comments
 (0)