mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibJS: Fix Clang Toolchain CI build
Clang was failing because because it rightfully saw we were attempting to call a deleted constructor of `MarkedValueList`. If you explicitly called move(list) then GCC would complain that the move was unnecessary. For what ever reason both tool chains accept when we construct the ThrowCompletionOr explicitly that we move the list into and return that.
This commit is contained in:
parent
d69e4f9ca7
commit
9f50e288f7
Notes:
sideshowbarker
2024-07-18 03:54:08 +09:00
Author: https://github.com/bgianfo
Commit: 9f50e288f7
Pull-request: https://github.com/SerenityOS/serenity/pull/10056
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ ThrowCompletionOr<MarkedValueList> create_list_from_array_like(GlobalObject& glo
|
|||
}
|
||||
|
||||
// 7. Return list.
|
||||
return list;
|
||||
return ThrowCompletionOr(move(list));
|
||||
}
|
||||
|
||||
// 7.3.22 SpeciesConstructor ( O, defaultConstructor ), https://tc39.es/ecma262/#sec-speciesconstructor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue