LibWeb: Make factory method of DOM::Comment fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 21:21:50 +01:00 committed by Linus Groh
commit 5ef9e02658
Notes: sideshowbarker 2024-07-17 00:12:55 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class Comment final : public CharacterData {
WEB_PLATFORM_OBJECT(Comment, CharacterData);
public:
static JS::NonnullGCPtr<Comment> construct_impl(JS::Realm&, DeprecatedString const& data);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Comment>> construct_impl(JS::Realm&, DeprecatedString const& data);
virtual ~Comment() override = default;
virtual DeprecatedFlyString node_name() const override { return "#comment"; }