mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibWeb: Make factory method of CSS::Screen fallible
This commit is contained in:
parent
1e24126004
commit
57c34e6325
2 changed files with 3 additions and 3 deletions
|
@ -13,9 +13,9 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
JS::NonnullGCPtr<Screen> Screen::create(HTML::Window& window)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Screen>> Screen::create(HTML::Window& window)
|
||||
{
|
||||
return window.heap().allocate<Screen>(window.realm(), window).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
return MUST_OR_THROW_OOM(window.heap().allocate<Screen>(window.realm(), window));
|
||||
}
|
||||
|
||||
Screen::Screen(HTML::Window& window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue