mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibJS: Remove the non-standard put helper and replace it's usages
This removes all usages of the non-standard put helper method and replaces all of it's usages with the specification required alternative or with define_direct_property where appropriate.
This commit is contained in:
committed by
Linus Groh
parent
53f70e5208
commit
e3ef241108
@@ -89,9 +89,8 @@ Optional<JS::Value> DebuggerGlobalJSObject::debugger_to_js(const Debug::DebugInf
|
||||
auto member_value = debugger_to_js(member);
|
||||
if (!member_value.has_value())
|
||||
continue;
|
||||
object->put(member.name, member_value.value(), {});
|
||||
object->define_direct_property(member.name, member_value.value(), JS::default_attributes);
|
||||
}
|
||||
object->finish_writing_properties();
|
||||
|
||||
return JS::Value(object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user