Closed
Bug 1825098
Opened 2 years ago
Closed 2 years ago
Implement the JS-API MVP for the GC proposal
Categories
(Core :: JavaScript: WebAssembly, task, P3)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
116 Branch
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: rhunt, Assigned: bvisness)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The GC proposal now specifies how the GC objects we implement (structs/arrays) should interact with JS. [1]
Essentially, these objects are allowed to flow to and from JS as an opaque value, but every JS operation on one of these objects will throw an exception.
We basically implement this, except for allowing the reading of fields of structs and elements of arrays. We use this pretty extensively for testing. We should add a special testing only builtin to support this wasmReadField(object, fieldIndex) when we implement this.
[1] https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP-JS.md
| Assignee | ||
Updated•2 years ago
|
Assignee: nobody → bvisness
| Assignee | ||
Comment 1•2 years ago
|
||
Pushed by bvisness@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4017661e8be2
Implement the JS API for the GC proposal. r=rhunt
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox116:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•