NEW241584
remove concept of non-static Strings with non-owned character data
https://bugs.webkit.org/show_bug.cgi?id=241584
Summary remove concept of non-static Strings with non-owned character data
Cameron McCormack (:heycam)
Reported 2022-06-13 19:32:35 PDT
It's possible to create non-static String objects that point to non-owned character data. Specifically, StringView::toStringWithoutCopying can do this. It's a bit dangerous since it's then not obvious to users of String that there is an arbitrary ownership dependence in there. We should consider removing that feature of String objects and replace their use with explicit uses of StringView. It's possible some places may want to represent "a String or a StringView", and we can consider introducing a type to mean that.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-20 19:33:12 PDT
Note You need to log in before you can comment on or make changes to this bug.