mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 17:05:06 +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
|
@ -166,9 +166,7 @@ private:
|
|||
|
||||
WebIDL::ExceptionOr<void> serialize_string(Vector<u32>& vector, JS::PrimitiveString const& primitive_string)
|
||||
{
|
||||
auto string = TRY(Bindings::throw_dom_exception_if_needed(m_vm, [&primitive_string]() {
|
||||
return primitive_string.utf8_string();
|
||||
}));
|
||||
auto string = primitive_string.utf8_string();
|
||||
TRY(serialize_string(vector, string));
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue