LibWeb: Make factory method of HTML::History fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 19:36:28 +01:00 committed by Linus Groh
commit 2f4db60c08
Notes: sideshowbarker 2024-07-17 22:41:14 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ class History final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(History, Bindings::PlatformObject);
public:
static JS::NonnullGCPtr<History> create(JS::Realm&, DOM::Document&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<History>> create(JS::Realm&, DOM::Document&);
virtual ~History() override;