Bug 246769
Summary: | [Wasm-GC] Implement initial minimal JS API for Wasm GC | ||
---|---|---|---|
Product: | WebKit | Reporter: | Asumu Takikawa <asumu> |
Component: | WebAssembly | Assignee: | 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 |
Asumu Takikawa
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/101604735>
Asumu Takikawa
Pull request: https://github.com/WebKit/WebKit/pull/10408
Asumu Takikawa
The patch for this already landed, not sure why it wasn't automatically closed. I'm closing it as fixed.