summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Object.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-07-06 01:15:50 +0300
committerLinus Groh <mail@linusgroh.de>2021-07-06 14:20:30 +0100
commite3ef2411086488ebdb8d193bcefd06cd77372d09 (patch)
tree6323321e9e8105be9d1278dbd03992876beafeaa /Userland/Libraries/LibJS/Runtime/Object.h
parent53f70e520889a58a75e243cb93ed14f08416cf8a (diff)
downloadserenity-e3ef2411086488ebdb8d193bcefd06cd77372d09.zip
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.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Object.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Object.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Object.h b/Userland/Libraries/LibJS/Runtime/Object.h
index d36a117089..178fe4c3c6 100644
--- a/Userland/Libraries/LibJS/Runtime/Object.h
+++ b/Userland/Libraries/LibJS/Runtime/Object.h
@@ -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 }); };