|
@@ -7,11 +7,10 @@
|
|
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
#include <LibWeb/Geometry/DOMPoint.h>
|
|
|
-#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
|
|
|
|
namespace Web::Geometry {
|
|
|
|
|
|
-WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMPoint>> DOMPoint::construct_impl(JS::Realm& realm, double x, double y, double z, double w)
|
|
|
+JS::NonnullGCPtr<DOMPoint> DOMPoint::construct_impl(JS::Realm& realm, double x, double y, double z, double w)
|
|
|
{
|
|
|
return realm.heap().allocate<DOMPoint>(realm, realm, x, y, z, w);
|
|
|
}
|
|
@@ -25,7 +24,7 @@ DOMPoint::DOMPoint(JS::Realm& realm, double x, double y, double z, double w)
|
|
|
JS::NonnullGCPtr<DOMPoint> DOMPoint::from_point(JS::VM& vm, DOMPointInit const& other)
|
|
|
{
|
|
|
// The fromPoint(other) static method on DOMPoint must create a DOMPoint from the dictionary other.
|
|
|
- return construct_impl(*vm.current_realm(), other.x, other.y, other.z, other.w).release_value_but_fixme_should_propagate_errors();
|
|
|
+ return construct_impl(*vm.current_realm(), other.x, other.y, other.z, other.w);
|
|
|
}
|
|
|
|
|
|
DOMPoint::~DOMPoint() = default;
|