mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Assert that cloned node is not null before returning
This makes potential issues easier to track down.
This commit is contained in:
committed by
Sam Atkins
parent
72ed62a560
commit
f8b1e96e2b
@@ -1040,6 +1040,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Node>> Node::clone_node(Document* document,
|
||||
}
|
||||
|
||||
// 7. Return copy.
|
||||
VERIFY(copy);
|
||||
return JS::NonnullGCPtr { *copy };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user