Closed Bug 1825098 Opened 2 years ago Closed 1 year ago

Implement the JS-API MVP for the GC proposal

Categories

(Core :: JavaScript: WebAssembly, task, P3)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: rhunt, Assigned: bvisness)

References

(Blocks 2 open bugs)

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: nobody → bvisness
Depends on: 1836050
Blocks: 1836320
Pushed by bvisness@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4017661e8be2 Implement the JS API for the GC proposal. r=rhunt
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Regressions: 1839065
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: