mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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
|
@ -26,7 +26,7 @@ public:
|
|||
template<typename T>
|
||||
static Array* create_from(GlobalObject& global_object, Span<T const> elements, Function<Value(T const&)> map_fn)
|
||||
{
|
||||
auto values = MarkedValueList { global_object.heap() };
|
||||
auto values = MarkedVector<Value> { global_object.heap() };
|
||||
values.ensure_capacity(elements.size());
|
||||
for (auto const& element : elements)
|
||||
values.append(map_fn(element));
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
virtual ThrowCompletionOr<Optional<PropertyDescriptor>> internal_get_own_property(PropertyKey const&) const override;
|
||||
virtual ThrowCompletionOr<bool> internal_define_own_property(PropertyKey const&, PropertyDescriptor const&) override;
|
||||
virtual ThrowCompletionOr<bool> internal_delete(PropertyKey const&) override;
|
||||
virtual ThrowCompletionOr<MarkedValueList> internal_own_property_keys() const override;
|
||||
virtual ThrowCompletionOr<MarkedVector<Value>> internal_own_property_keys() const override;
|
||||
|
||||
[[nodiscard]] bool length_is_writable() const { return m_length_writable; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue