diff --git a/Userland/Libraries/LibJS/Runtime/Completion.h b/Userland/Libraries/LibJS/Runtime/Completion.h index cae9f8b8ff..0367d25727 100644 --- a/Userland/Libraries/LibJS/Runtime/Completion.h +++ b/Userland/Libraries/LibJS/Runtime/Completion.h @@ -268,9 +268,9 @@ 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 value) + ThrowCompletionOr(WrappedValueType const& value) requires(!IsPOD) - : m_value(move(value)) + : m_value(value) { }