We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a528c commit d4b08b7Copy full SHA for d4b08b7
Userland/Libraries/LibJS/Runtime/Completion.h
@@ -307,7 +307,7 @@ class [[nodiscard]] ThrowCompletionOr {
307
// Most commonly: Value from Object* or similar, so we can omit the curly braces from "return { TRY(...) };".
308
// Disabled for POD types to avoid weird conversion shenanigans.
309
template<typename WrappedValueType>
310
- ThrowCompletionOr(WrappedValueType const& value)
+ ThrowCompletionOr(WrappedValueType&& value)
311
requires(!IsPOD<ValueType>)
312
: m_value_or_throw_completion(ValueType { value })
313
{
0 commit comments