diff --git a/Userland/Libraries/LibJS/Forward.h b/Userland/Libraries/LibJS/Forward.h index 78bc0ce054..6e656ccfc4 100644 --- a/Userland/Libraries/LibJS/Forward.h +++ b/Userland/Libraries/LibJS/Forward.h @@ -7,6 +7,7 @@ #pragma once +#include #include #define JS_DECLARE_NATIVE_FUNCTION(name) \ @@ -282,6 +283,7 @@ struct PartialDurationRecord; }; template +requires(!IsLvalueReference) class ThrowCompletionOr; template diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h index d1f226e647..0e36f3b8a0 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.h +++ b/Userland/Libraries/LibJS/Runtime/Completion.h @@ -246,6 +246,7 @@ private: namespace JS { template +requires(!IsLvalueReference) class [[nodiscard]] ThrowCompletionOr { public: ThrowCompletionOr()