RESOLVED FIXED277608
[JSC] Supports Type Reflection for `WebAssembly.Module.imports` and `WebAssembly.Module.exports`
https://bugs.webkit.org/show_bug.cgi?id=277608
Summary [JSC] Supports Type Reflection for `WebAssembly.Module.imports` and `WebAssem...
Sosuke Suzuki
Reported 2024-08-04 09:28:44 PDT
The current JSC implements part of the WebAssembly Type Reflection proposal[1]. It allows to get type informations through methods like `WebAssembly.Memory.prototype.type()` and `WebAssembly.Table.prototype.type()`. The Type Reflection API should also add a new `type` field to the elements of the arrays returned by `WebAssembly.Module.imports` and `WebAssembly.Module.exports`[2]. However, this feature is not currently implemented in JSC. This feature has been implemented to V8[3] and SpiderMonkey[4]. [1]: https://github.com/WebAssembly/js-types [2]: https://webassembly.github.io/js-types/js-api/#modules [3]: https://chromium-review.googlesource.com/c/v8/v8/+/1763527 [4]: https://hg.mozilla.org/mozilla-central/rev/91e0c6d26de8ba365ec3d462f98d28c75055a89b
Attachments
Sosuke Suzuki
Comment 1 2024-08-04 10:14:34 PDT
EWS
Comment 2 2024-08-07 19:37:07 PDT
Committed 281974@main (6880a8bf71b0): <https://commits.webkit.org/281974@main> Reviewed commits have been landed. Closing PR #31702 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-08-07 19:38:15 PDT
Note You need to log in before you can comment on or make changes to this bug.