diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h index e84c9870c4..bf70d75ff2 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.h +++ b/Userland/Libraries/LibJS/Runtime/Completion.h @@ -97,7 +97,10 @@ private: template class [[nodiscard]] ThrowCompletionOr { public: - ThrowCompletionOr() requires(IsSame) = default; + ThrowCompletionOr() requires(IsSame) + : m_value(Empty {}) + { + } // Not `explicit` on purpose so that `return vm.throw_completion(...);` is possible. ThrowCompletionOr(Completion throw_completion)