mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-21 09:41:53 +00:00
LibJS: Convert two suspicious Vector<Value> to MarkedValueList
This commit is contained in:
parent
d85eed585c
commit
b32c0c8181
Notes:
sideshowbarker
2024-07-19 02:49:45 +09:00
Author: https://github.com/awesomekling
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