mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Make factory method of Selection::Selection fallible
This commit is contained in:
committed by
Andreas Kling
parent
d69e863286
commit
dcbe927b48
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user