mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibJS: Replace uses of MarkedValueList with MarkedVector<Value>
This is effectively a drop-in replacement.
This commit is contained in:
parent
1d32ac7b8b
commit
bc183dbbcb
61 changed files with 143 additions and 142 deletions
|
@ -173,12 +173,12 @@ template<typename... Args>
|
|||
[[nodiscard]] ALWAYS_INLINE ThrowCompletionOr<Value> Value::invoke(GlobalObject& global_object, PropertyKey const& property_key, Args... args)
|
||||
{
|
||||
if constexpr (sizeof...(Args) > 0) {
|
||||
MarkedValueList arglist { global_object.vm().heap() };
|
||||
MarkedVector<Value> arglist { global_object.vm().heap() };
|
||||
(..., arglist.append(move(args)));
|
||||
return invoke_internal(global_object, property_key, move(arglist));
|
||||
}
|
||||
|
||||
return invoke_internal(global_object, property_key, Optional<MarkedValueList> {});
|
||||
return invoke_internal(global_object, property_key, Optional<MarkedVector<Value>> {});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue