Closed Bug 1682121 Opened 3 years ago Closed 3 years ago

Add a ToJSValue overload for nsACString

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

No description provided.

I wrote this for bug 1682003, but I split it off it because I don't
really need it (I need it on one place where I know I have valid
utf-8).

I think this is a sensible thing to do though. This throws on invalid
utf-8 via:

https://searchfox.org/mozilla-central/rev/0bcf81557b89e7757c44e25bb4bc7f4cb8619dc9/js/src/vm/CharacterEncoding.cpp#432

This would allow doing stuff like resolving promises using nsCStrings
slightly more conveniently / efficiently than using NS_ConvertUTF*.

Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P3
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ff4a99632d3
Add a ToJSValue overload for nsACString. r=hsivonen
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: