1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:12:08 +00:00

LibJS: Prefer "define_property" over "put"

This commit is contained in:
Matthew Olsson 2020-07-11 07:58:56 -07:00 committed by Andreas Kling
parent c485c86015
commit 531fdb2e82
3 changed files with 5 additions and 5 deletions

View file

@ -112,8 +112,8 @@ void iterator_close(Object& iterator)
Value create_iterator_result_object(Interpreter& interpreter, GlobalObject& global_object, Value value, bool done)
{
auto* object = Object::create_empty(interpreter, global_object);
object->put("value", value);
object->put("done", Value(done));
object->define_property("value", value);
object->define_property("done", Value(done));
return object;
}