Closed Bug 1586683 Opened 5 years ago Closed 5 years ago

Remove flat strings from the API

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

It's pretty easy to expose linear strings instead of flat strings because none of the consumers actually care about flat (null-terminated) strings, they just want to work with linear strings. This allows us to remove flat strings altogether (bug 1330776).

We want to remove flat strings (JSFlatString). With this patch we only expose
linear strings (JSLinearString) to API consumers.

This is very mechanical for the most part, because code typically only cares
about linear strings and not the null-termination aspect.

Priority: -- → P1
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/78f93714ded7 Remove flat strings from JSAPI. r=jwalden,bzbarsky
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: