Bug 246769 - [Wasm-GC] Implement initial minimal JS API for Wasm GC
Summary: [Wasm-GC] Implement initial minimal JS API for Wasm GC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 247394
  Show dependency treegraph
 
Reported: 2022-10-19 14:21 PDT by Asumu Takikawa
Modified: 2023-03-29 14:31 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Asumu Takikawa 2022-10-19 14:21:51 PDT
The Wasm GC proposal will likely adopt a minimal initial JS API as described here: https://github.com/WebAssembly/gc/issues/279

This bug is for the initial implementation of that JS API. The changes this will require in JSC are to allow structs/arrays to pass out of Wasm to JS (this currently throws), and then ensure that those objects appear frozen (and most operations on them should throw).

There are also a few places where conversion operations are needed, such as for globals and tables. And also for i31ref values, which require a conversion from appropriate Number values (this is a no-op if the JS representation is an integer, but may require a conversion if it's represented as a double).
Comment 1 Radar WebKit Bug Importer 2022-10-26 14:22:18 PDT
<rdar://problem/101604735>
Comment 2 Asumu Takikawa 2023-02-20 15:29:59 PST
Pull request: https://github.com/WebKit/WebKit/pull/10408
Comment 3 Asumu Takikawa 2023-03-29 14:31:49 PDT
The patch for this already landed, not sure why it wasn't automatically closed. I'm closing it as fixed.