Bug 246769

Summary: [Wasm-GC] Implement initial minimal JS API for Wasm GC
Product: WebKit Reporter: Asumu Takikawa <asumu>
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bashorov, mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 247394    

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.