mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibWeb: Make factory method of DOM::TreeWalker fallible
This commit is contained in:
parent
251c063897
commit
552663a2ba
3 changed files with 4 additions and 4 deletions
|
@ -1953,7 +1953,7 @@ JS::NonnullGCPtr<NodeIterator> Document::create_node_iterator(Node& root, unsign
|
|||
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
|
||||
JS::NonnullGCPtr<TreeWalker> Document::create_tree_walker(Node& root, unsigned what_to_show, JS::GCPtr<NodeFilter> filter)
|
||||
{
|
||||
return TreeWalker::create(root, what_to_show, filter);
|
||||
return TreeWalker::create(root, what_to_show, filter).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
void Document::register_node_iterator(Badge<NodeIterator>, NodeIterator& node_iterator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue