1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibWeb
Timothy Flynn c3abb1396c LibJS+LibWeb: Convert string view PrimitiveString instances to String
First, this adds an overload of PrimitiveString::create for StringView.
This overload will throw an OOM completion if creating a String fails.
This is not only a bit more convenient, but it also ensures at compile
time that all PrimitiveString::create(string_view) invocations will be
handled as String and OOM-aware.

Next, this wraps all invocations to PrimitiveString::create(string_view)
with MUST_OR_THROW_OOM.

A small PrimitiveString::create(DeprecatedFlyString) overload also had
to be added to disambiguate between the StringView and DeprecatedString
overloads.
2023-02-09 17:13:33 +00:00
..
BindingsGenerator LibJS+LibWeb: Convert string view PrimitiveString instances to String 2023-02-09 17:13:33 +00:00
CMakeLists.txt LibWeb: Add new code generator for creating exposed interface helpers 2022-10-09 10:14:57 +02:00
GenerateCSSEnums.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
GenerateCSSMediaFeatureID.cpp CodeGenerators: Replace uses of JsonObject::get_deprecated()/get_ptr() 2023-01-26 09:57:14 -05:00
GenerateCSSPropertyID.cpp CodeGenerators: Replace uses of JsonObject::get_deprecated()/get_ptr() 2023-01-26 09:57:14 -05:00
GenerateCSSTransformFunctions.cpp CodeGenerators: Replace uses of JsonObject::get_deprecated()/get_ptr() 2023-01-26 09:57:14 -05:00
GenerateCSSValueID.cpp LibWeb: Implement value_id_from_string by hash lookup 2023-01-14 15:43:27 -07:00
GenerateWindowOrWorkerInterfaces.cpp LibJS+LibWeb: Convert string view PrimitiveString instances to String 2023-02-09 17:13:33 +00:00
GeneratorUtil.h LibCore: Propagate errors from Stream::*_entire_buffer 2022-12-12 14:16:42 +01:00