1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:57:45 +00:00

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
parent 50c5f0d7da
commit 5ef9e02658
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"; }