1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

LibWeb: Make factory method of Geometry::DOMPoint fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 18:07:00 +01:00 committed by Andreas Kling
parent 459959b297
commit 530ec85c4a
3 changed files with 6 additions and 5 deletions

View file

@ -36,7 +36,7 @@ float SVGGeometryElement::get_total_length()
JS::NonnullGCPtr<Geometry::DOMPoint> SVGGeometryElement::get_point_at_length(float distance)
{
(void)distance;
return Geometry::DOMPoint::construct_impl(realm(), 0, 0, 0, 0);
return Geometry::DOMPoint::construct_impl(realm(), 0, 0, 0, 0).release_value_but_fixme_should_propagate_errors();
}
}