Closed Bug 1924764 Opened 2 years ago Closed 1 year ago

JS bindings generate invalid enum variant discriminants

Categories

(Toolkit :: UniFFI Bindings, defect, P3)

defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: markh, Assigned: bgruber)

References

Details

(Whiteboard: [disco-])

Attachments

(1 external file, 3 obsolete files)

As described in bug 1924194 - I believe all the builtin languages will do the right thing here, but apparently JS does not.

Whiteboard: [disco-]
Attachment #9473666 - Attachment is obsolete: true
Assignee: nobody → bgruber
Status: NEW → ASSIGNED
Pushed by bgruber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8b95b60ccc81 Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk

Backed out for causing xpc failures @test_quicksuggest.js.

Flags: needinfo?(bgruber)

The changes impact AMP and relevancy as well. Have to get a re-review from @adw.

Flags: needinfo?(bgruber)
Pushed by bgruber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11dc373cc55d Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk,nanj

Backed out as requested by @bdk because it requires another commit.

Flags: needinfo?(bgruber)
Attachment #9473727 - Attachment description: Bug 1924764 - Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk → Bug 1924764 - Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk,nanj
Pushed by bgruber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/996912b431c9 Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk,adw,nanj
Depends on: 1962283
Flags: needinfo?(bgruber)
Pushed by bgruber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48b0e94035f8 Adjust UniFFI JS enum bindings to match Rust discriminants. r=bdk
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
Attachment #9473727 - Attachment is obsolete: true
Attachment #9473671 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: