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

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
parent cdde3ba5c5
commit 14e99b9b68
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());