Bug 277608
| Summary: | [JSC] Supports Type Reflection for `WebAssembly.Module.imports` and `WebAssembly.Module.exports` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/31702
EWS
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
<rdar://problem/133429946>