diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h index d7671c40ce..c4b07bd48c 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.h +++ b/Userland/Libraries/LibJS/Runtime/Completion.h @@ -307,7 +307,7 @@ public: // Most commonly: Value from Object* or similar, so we can omit the curly braces from "return { TRY(...) };". // Disabled for POD types to avoid weird conversion shenanigans. template - ThrowCompletionOr(WrappedValueType const& value) + ThrowCompletionOr(WrappedValueType&& value) requires(!IsPOD) : m_value_or_throw_completion(ValueType { value }) {