diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Completion.h | 5 |
1 files changed, 4 insertions, 1 deletions
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<typename ValueType> class [[nodiscard]] ThrowCompletionOr { public: - ThrowCompletionOr() requires(IsSame<ValueType, Empty>) = default; + ThrowCompletionOr() requires(IsSame<ValueType, Empty>) + : m_value(Empty {}) + { + } // Not `explicit` on purpose so that `return vm.throw_completion<Error>(...);` is possible. ThrowCompletionOr(Completion throw_completion) |