Skip to content

Commit

Permalink
DOMException should have a virtual destructor
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274352

Reviewed by Chris Dumez.

Added a virtual destructor since this class has subclasses.

* Source/WebCore/dom/DOMException.h:
(WebCore::DOMException::~DOMException):

Canonical link: https://commits.webkit.org/278981@main
  • Loading branch information
rniwa committed May 20, 2024
1 parent c3c24e0 commit 26c6625
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebCore/dom/DOMException.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class DOMException : public RefCounted<DOMException> {
// For DOM bindings.
static Ref<DOMException> create(const String& message, const String& name);

virtual ~DOMException() { }

using LegacyCode = uint8_t;
LegacyCode legacyCode() const { return m_legacyCode; }

Expand Down

0 comments on commit 26c6625

Please sign in to comment.