mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibJS: Make PrimitiveString::utf8_string() infallible
Work towards #20449.
This commit is contained in:
parent
7849950383
commit
c084269e5f
29 changed files with 79 additions and 93 deletions
|
@ -1573,7 +1573,7 @@ void Element::enqueue_a_custom_element_callback_reaction(FlyString const& callba
|
|||
VERIFY(!arguments.is_empty());
|
||||
auto& attribute_name_value = arguments.first();
|
||||
VERIFY(attribute_name_value.is_string());
|
||||
auto attribute_name = attribute_name_value.as_string().utf8_string().release_allocated_value_but_fixme_should_propagate_errors();
|
||||
auto attribute_name = attribute_name_value.as_string().utf8_string();
|
||||
|
||||
// 2. If definition's observed attributes does not contain attributeName, then return.
|
||||
if (!definition->observed_attributes().contains_slow(attribute_name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue