Closed Bug 1809459 Opened 2 years ago Closed 6 months ago

Use Map instances for UniFFI maps to allow non-string keys.

Categories

(Toolkit :: UniFFI Bindings, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: bdk, Assigned: adw)

References

Details

(Whiteboard: [disco-][sng])

Attachments

(1 file)

We currently implement maps using plain-old-javascript-objects. This means that all keys must be strings. UniFFI now supports non-string keys, so we should switch to using the Map class which allows for non-strings.

Severity: -- → S4
Whiteboard: [disco-]

I hit this in a PR I'm working on so I'd like to take a shot at it.

Assignee: nobody → adw
Status: NEW → ASSIGNED

Sounds good, have you started on it? I'm trying to land a large refactor of the binding generation, which will make this work easier but it will be pretty disruptive if it lands while you're in the middle of working on this. It's very close to landing, I just need to rebase and fix what's hopefully the last small bug. I'm thinking it'll land today -- although I said that yesterday as well.

Can you base your work on top of that or wait until it lands?

Oh, you're quick. I see the phabricator patch already. No problem, I'll rebase on top of yours.

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6cdd123fbdf7 Use Map instances for UniFFI maps to allow non-string keys. r=bdk
Whiteboard: [disco-] → [disco-][sng]
Blocks: 1967617
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: