mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -123,9 +123,6 @@ public:
|
|||
|
||||
// Non-standard methods
|
||||
|
||||
// - Helpers using old, non-standard names but wrapping the standard methods.
|
||||
// FIXME: Update all the code relying on these and remove them.
|
||||
bool put(PropertyName const& property_name, Value value, Value receiver = {}) { return internal_set(property_name, value, receiver.value_or(this)); }
|
||||
Value get_without_side_effects(const PropertyName&) const;
|
||||
|
||||
void define_direct_property(PropertyName const& property_name, Value value, PropertyAttributes attributes) { storage_set(property_name, { value, attributes }); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue