mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +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:
parent
53f70e5208
commit
e3ef241108
15 changed files with 40 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue