Skip to content

Commit

Permalink
Remove type() method from Tag object (#318)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dschuff committed Jul 16, 2024
1 parent 4c93161 commit 24be425
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
16 changes: 0 additions & 16 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,6 @@ dictionary TagType {
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
interface Tag {
constructor(TagType type);
TagType type();
};
</pre>

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

</div>

<div algorithm>

The <dfn method for="Tag">type()</dfn> method steps are:

1. Let |store| be the [=surrounding agent=]'s [=associated store=].
1. Let [|parameters|] → [] be [=tag_type=](|store|, **this**.\[[Address]]).
1. Let |idlParameters| be «».
1. [=list/iterate|For each=] |type| of |parameters|,
1. [=list/Append=] [$FromValueType$](|type|) to |idlParameters|.
1. Return «[ "{{TagType/parameters}}" → |idlParameters| ]».

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).

</div>

<h4 id="runtime-exceptions">Runtime exceptions</h4>

<pre class="idl">
Expand Down
21 changes: 0 additions & 21 deletions test/js-api/tag/type.tentative.any.js

This file was deleted.

0 comments on commit 24be425

Please sign in to comment.