mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Make factory methods of DOM::Range fallible
This commit is contained in:
parent
e3e281addd
commit
0791195843
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/kennethmyhra
Commit: 0791195843
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
4 changed files with 21 additions and 21 deletions
|
@ -1256,7 +1256,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<ProcessingInstruction>> Document::create_pr
|
|||
|
||||
JS::NonnullGCPtr<Range> Document::create_range()
|
||||
{
|
||||
return Range::create(*this);
|
||||
return Range::create(*this).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-document-createevent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue