mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibJS: Move provided Optional<Value> argument in normal_completion()
This commit is contained in:
parent
f16f3c4677
commit
13777d4886
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -159,7 +159,7 @@ ThrowCompletionOr<Value> await(GlobalObject&, Value);
|
|||
// 6.2.3.2 NormalCompletion ( value ), https://tc39.es/ecma262/#sec-normalcompletion
|
||||
inline Completion normal_completion(Optional<Value> value)
|
||||
{
|
||||
return { Completion::Type::Normal, value, {} };
|
||||
return { Completion::Type::Normal, move(value), {} };
|
||||
}
|
||||
|
||||
// 6.2.3.3 ThrowCompletion ( value ), https://tc39.es/ecma262/#sec-throwcompletion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue