1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 13:35:07 +00:00
serenity/Userland/Libraries/LibWeb/Infra
Timothy Flynn 115baa7e32 LibJS+Everywhere: Make PrimitiveString and Utf16String fallible
This makes construction of Utf16String fallible in OOM conditions. The
immediate impact is that PrimitiveString must then be fallible as well,
as it may either transcode UTF-8 to UTF-16, or create a UTF-16 string
from ropes.

There are a couple of places where it is very non-trivial to propagate
the error further. A FIXME has been added to those locations.
2023-01-08 12:13:15 +01:00
..
ByteSequences.cpp LibWeb: Add 'byte-{lower,upper}case' operations from the Infra spec 2022-07-14 00:42:26 +01:00
ByteSequences.h LibWeb: Add 'byte-{lower,upper}case' operations from the Infra spec 2022-07-14 00:42:26 +01:00
CharacterTypes.h LibWeb: Replace incorrect uses of String::trim_whitespace() 2022-10-02 21:32:49 +02:00
JSON.cpp LibJS+Everywhere: Make PrimitiveString and Utf16String fallible 2023-01-08 12:13:15 +01:00
JSON.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Strings.cpp AK+Everywhere: Make UTF-8 and UTF-32 to UTF-16 converters fallible 2023-01-08 12:13:15 +01:00
Strings.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00