Open Bug 1703089 Opened 4 months ago Updated 22 minutes ago

Implement the final JS API for Wasm exceptions

Categories

(Core :: Javascript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: asumu, Assigned: asumu)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(5 files)

Currently the Wasm exception handling implemention in Spidermonkey has a skeleton of a JS API based on what seems to be the current consensus, but the spec API is not fully fleshed out yet.

On the specification side, I started a discussion on finalizing the API: https://github.com/WebAssembly/exception-handling/issues/150

I'll attach some WIP patches here that prototype a possible direction for that API. I'll evolve these patches as the API becomes more solid.

Depends on D110851

Depends on D110852

Assignee: nobody → asumu
Severity: -- → N/A
OS: Unspecified → All
Priority: -- → P3
Hardware: Unspecified → All

Depends on D110853

Depends on: 1717118
Attachment #9213642 - Attachment description: WIP: Bug 1703089 - implement RuntimeException constructor in Wasm exceptions JS API → WIP: Bug 1703089 - Implement WebAssembly.Exception constructor
Attachment #9213643 - Attachment description: WIP: Bug 1703089 - Add WebAssembly.RuntimeException methods → WIP: Bug 1703089 - Add WebAssembly.Exception methods
Attachment #9213644 - Attachment description: WIP: Bug 1703089 - Implement WebAssembly.Exception constructor → WIP: Bug 1703089 - Implement WebAssembly.Tag constructor
Attachment #9224866 - Attachment description: WIP: Bug 1703089 - Implement type reflection for WebAssembly.Exception → WIP: Bug 1703089 - Implement type reflection for WebAssembly.Tag
Attachment #9224866 - Attachment description: WIP: Bug 1703089 - Implement type reflection for WebAssembly.Tag → Bug 1703089 - Implement type reflection for WebAssembly.Tag
Attachment #9213644 - Attachment description: WIP: Bug 1703089 - Implement WebAssembly.Tag constructor → Bug 1703089 - Implement WebAssembly.Tag constructor
Attachment #9213643 - Attachment description: WIP: Bug 1703089 - Add WebAssembly.Exception methods → Bug 1703089 - Add WebAssembly.Exception methods
Attachment #9213642 - Attachment description: WIP: Bug 1703089 - Implement WebAssembly.Exception constructor → Bug 1703089 - Implement WebAssembly.Exception constructor

Recently the JS API formal spec (https://github.com/WebAssembly/exception-handling/pull/86), proposal overview (https://github.com/WebAssembly/exception-handling/pull/154), and WPT tests (https://github.com/WebAssembly/exception-handling/pull/155) were merged into the exception handling proposal.

Given that milestone, I marked the attached patches as ready for review. I've tested the patches against the spec tests, which should get merged into the main WPT repo at some point. I'll also rebase these patches soon as well.

Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/integration/autoland/rev/c8008c66d883
Implement WebAssembly.Exception constructor r=rhunt
https://hg.mozilla.org/integration/autoland/rev/26fc35525a71
Add WebAssembly.Exception methods r=rhunt
https://hg.mozilla.org/integration/autoland/rev/5a5a33fbb176
Implement WebAssembly.Tag constructor r=rhunt
https://hg.mozilla.org/integration/autoland/rev/7ded9f637e58
Implement type reflection for WebAssembly.Tag r=rhunt
https://hg.mozilla.org/integration/autoland/rev/ac4000f104a3
Update WPT test metadata for Wasm exceptions JS API r=rhunt
You need to log in before you can comment on or make changes to this bug.