mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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:
parent
cdde3ba5c5
commit
14e99b9b68
Notes:
sideshowbarker
2024-07-18 03:22:48 +09:00
Author: https://github.com/IdanHo
Commit: 14e99b9b68
Pull-request: https://github.com/SerenityOS/serenity/pull/10236
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue