1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibWeb: Make factory method of Selection::Selection fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 18:39:04 +01:00 committed by Andreas Kling
parent d69e863286
commit dcbe927b48
3 changed files with 4 additions and 4 deletions

View file

@ -378,7 +378,7 @@ JS::GCPtr<Selection::Selection> Document::get_selection()
}
if (!m_selection) {
m_selection = Selection::Selection::create(realm(), *this);
m_selection = Selection::Selection::create(realm(), *this).release_value_but_fixme_should_propagate_errors();
}
return m_selection;
}