diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-07 21:38:46 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-09 23:33:00 +0200 |
commit | 7a1d485b19a43b3538b3ac69040ebc2b3bb14d85 (patch) | |
tree | 911f871ab04920383b79d24ae22c9ea80976685c /Libraries/LibJS/Runtime/ProxyObject.h | |
parent | 9783a4936cd0677dc3fe12cbf9009eceb47c4d1f (diff) | |
download | serenity-7a1d485b19a43b3538b3ac69040ebc2b3bb14d85.zip |
LibJS: Integrate Symbols into objects as valid keys
This allows objects properties to be created for symbol keys in addition
to just plain strings/numbers
Diffstat (limited to 'Libraries/LibJS/Runtime/ProxyObject.h')
-rw-r--r-- | Libraries/LibJS/Runtime/ProxyObject.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Libraries/LibJS/Runtime/ProxyObject.h b/Libraries/LibJS/Runtime/ProxyObject.h index 9c8b271161..83451712eb 100644 --- a/Libraries/LibJS/Runtime/ProxyObject.h +++ b/Libraries/LibJS/Runtime/ProxyObject.h @@ -52,12 +52,12 @@ public: virtual bool set_prototype(Object* object) override; virtual bool is_extensible() const override; virtual bool prevent_extensions() override; - virtual Optional<PropertyDescriptor> get_own_property_descriptor(PropertyName) const override; - virtual bool define_property(const FlyString& property_name, const Object& descriptor, bool throw_exceptions = true) override; - virtual bool has_property(PropertyName name) const override; - virtual Value get(PropertyName name, Value receiver) const override; - virtual bool put(PropertyName name, Value value, Value receiver) override; - virtual Value delete_property(PropertyName name) override; + virtual Optional<PropertyDescriptor> get_own_property_descriptor(const PropertyName&) const override; + virtual bool define_property(const StringOrSymbol& property_name, const Object& descriptor, bool throw_exceptions = true) override; + virtual bool has_property(const PropertyName& name) const override; + virtual Value get(const PropertyName& name, Value receiver) const override; + virtual bool put(const PropertyName& name, Value value, Value receiver) override; + virtual Value delete_property(const PropertyName& name) override; void revoke() { m_is_revoked = true; } |