Closed Bug 1973174 Opened 2 days ago Closed 1 day ago

Add TypeScript definitions for setFrom* and to* function for Uint8Array

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox141 fixed)

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Uint8Array has some functions that were added in Firefox 133, and the spec is currently at stage 3. The V8 engine hasn't implemented these yet, hence TypeScript also hasn't implemented them.

The added functions are:

  • setFromBase64
  • setFromHex
  • toBase64
  • toHex

We are using toBase64 in the search code, so I think we should add these globally, so that they're available if other areas of the code start to use them.

Pushed by mbanner@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/df152b056c83 https://hg.mozilla.org/integration/autoland/rev/36c9bdbe2bc8 Add TypeScript definitions for setFrom* and to* function for Uint8Array. r=zombie DONTBUILD
Status: NEW → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: