1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

LibJS: Port create_iterator_result_object() to NonnullGCPtr

This commit is contained in:
Linus Groh 2023-04-15 16:26:42 +02:00
parent aff1ec6014
commit d4eaaf905c
4 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@ JS::Object* FormDataIterator::next()
if (m_iterator_kind == JS::Object::PropertyKind::Value)
return create_iterator_result_object(vm, entry_value, false);
return create_iterator_result_object(vm, JS::Array::create_from(realm(), { JS::PrimitiveString::create(vm, entry.name), entry_value }), false);
return create_iterator_result_object(vm, JS::Array::create_from(realm(), { JS::PrimitiveString::create(vm, entry.name), entry_value }), false).ptr();
}
}