diff --git a/Userland/Libraries/LibJS/Runtime/Date.cpp b/Userland/Libraries/LibJS/Runtime/Date.cpp index b29830cace..a4787ee438 100644 --- a/Userland/Libraries/LibJS/Runtime/Date.cpp +++ b/Userland/Libraries/LibJS/Runtime/Date.cpp @@ -36,6 +36,8 @@ Date::Date(double date_value, Object& prototype) { } +Date::~Date() = default; + ErrorOr Date::iso_date_string() const { int year = year_from_time(m_date_value); diff --git a/Userland/Libraries/LibJS/Runtime/Date.h b/Userland/Libraries/LibJS/Runtime/Date.h index 5f7d64e32e..2dae8eead9 100644 --- a/Userland/Libraries/LibJS/Runtime/Date.h +++ b/Userland/Libraries/LibJS/Runtime/Date.h @@ -19,7 +19,8 @@ class Date final : public Object { public: static NonnullGCPtr create(Realm&, double date_value); - virtual ~Date() override = default; + // Out of line to ensure we have a key function + virtual ~Date() override; double date_value() const { return m_date_value; } void set_date_value(double value) { m_date_value = value; }