mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibWeb: Make factory method of DOMParsing::XMLSerializer fallible
This commit is contained in:
parent
f918d12655
commit
77e4432367
2 changed files with 3 additions and 3 deletions
|
@ -21,9 +21,9 @@
|
|||
|
||||
namespace Web::DOMParsing {
|
||||
|
||||
JS::NonnullGCPtr<XMLSerializer> XMLSerializer::construct_impl(JS::Realm& realm)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<XMLSerializer>> XMLSerializer::construct_impl(JS::Realm& realm)
|
||||
{
|
||||
return (realm.heap().allocate<XMLSerializer>(realm, realm)).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
return MUST_OR_THROW_OOM(realm.heap().allocate<XMLSerializer>(realm, realm));
|
||||
}
|
||||
|
||||
XMLSerializer::XMLSerializer(JS::Realm& realm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue