LibJS: Change create_iterator_result_object's return type to Object*

This always returns an Object, so there's no reason to return a less
explicit Value.
This commit is contained in:
Idan Horowitz 2021-09-28 02:03:42 +03:00 committed by Andreas Kling
commit 14e99b9b68
Notes: sideshowbarker 2024-07-18 03:22:48 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ void iterator_close(Object& iterator)
}
// 7.4.8 CreateIterResultObject ( value, done ), https://tc39.es/ecma262/#sec-createiterresultobject
Value create_iterator_result_object(GlobalObject& global_object, Value value, bool done)
Object* create_iterator_result_object(GlobalObject& global_object, Value value, bool done)
{
auto& vm = global_object.vm();
auto* object = Object::create(global_object, global_object.object_prototype());