mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
LibJS: Convert two suspicious Vector<Value> to MarkedValueList
This commit is contained in:
parent
d85eed585c
commit
b32c0c8181
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayConstructor::from)
|
|||
// Array.from() lets you create Arrays from:
|
||||
if (auto size = object->indexed_properties().array_like_size()) {
|
||||
// * array-like objects (objects with a length property and indexed elements)
|
||||
Vector<Value> elements;
|
||||
MarkedValueList elements(interpreter.heap());
|
||||
elements.ensure_capacity(size);
|
||||
for (size_t i = 0; i < size; ++i) {
|
||||
elements.append(object->get(i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue