Closed Bug 1717118 Opened 4 years ago Closed 4 years ago

Implement renaming of "events" to "tags" in Wasm exceptions proposal

Categories

(Core :: JavaScript: WebAssembly, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: asumu, Assigned: asumu)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

There has been a spec discussion of whether to rename the concept of "events" in the Wasm exception handling proposal (https://github.com/WebAssembly/exception-handling/issues/159) and consensus seems to be to rename them to "tags".

(The motivation behind "tags" is to use a generic enough name that it can be used for other future proposals while avoiding confusion with other concepts called "events" in JS)

There are pull requests to implement this change in the spec, LLVM, and binaryen: https://github.com/WebAssembly/exception-handling/issues/159#issuecomment-863099331

This bug is for handling this change in SpiderMonkey.

Assignee: nobody → asumu

My plan was to initially leave text format tests as-is (except for changing error messages where needed) and just implement the change for the engine until the renaming is also implemented in wasm-tools/wat.

The Wasm exception handling spec has changed to rename "events"
to "tags". As a result, WebAssembly.Exception gets renamed
to WebAssembly.Tag and WebAssembly.RuntimeException becomes
WebAssembly.Exception.

The concept of "events" in the Wasm exception handling proposal
has been renamed to "tags". This commit implements this renaming
in most cases (an exception is text format tests).

Depends on D118281

Severity: -- → N/A
Priority: -- → P2
Attachment #9227922 - Attachment description: WIP: Bug 1717118 - Part 1, rename JS API classes for exceptions → Bug 1717118 - Part 1, rename JS API classes for exceptions
Attachment #9227923 - Attachment description: WIP: Bug 1717118 - Part 2, rename "event" to "tag" throughout → Bug 1717118 - Part 2, rename "event" to "tag" throughout

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:asumu, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(rhunt)
Flags: needinfo?(asumu)

This patch is just waiting to land and the delay is mostly just due to timing. It's been recently rebased and still relevant, so I'll clear the needinfo.

Flags: needinfo?(rhunt)
Flags: needinfo?(asumu)
Pushed by rhunt@eqrion.net: https://hg.mozilla.org/integration/autoland/rev/49a2b786ffb3 Part 1, rename JS API classes for exceptions r=rhunt https://hg.mozilla.org/integration/autoland/rev/41ea9227d3e6 Part 2, rename "event" to "tag" throughout r=rhunt
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: