diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-27 21:48:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-27 22:36:04 +0200 |
commit | ba9d5c4d54d2e58c14eafe1e8960c3832fac46c7 (patch) | |
tree | 975cef60a364e12fb5600555548bdb1f8565874e /Userland/Libraries/LibJS/Runtime/Object.h | |
parent | e389ae3c9754b0c6c40a383a666f103c42789630 (diff) | |
download | serenity-ba9d5c4d54d2e58c14eafe1e8960c3832fac46c7.zip |
LibJS: Rename Function => FunctionObject
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Object.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Object.h b/Userland/Libraries/LibJS/Runtime/Object.h index bd8fb0575e..5c27c82f08 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.h +++ b/Userland/Libraries/LibJS/Runtime/Object.h @@ -28,8 +28,8 @@ public: \ struct PropertyDescriptor { PropertyAttributes attributes; Value value; - Function* getter { nullptr }; - Function* setter { nullptr }; + FunctionObject* getter { nullptr }; + FunctionObject* setter { nullptr }; static PropertyDescriptor from_dictionary(VM&, const Object&); @@ -91,7 +91,7 @@ public: virtual bool define_property(const StringOrSymbol& property_name, const Object& descriptor, bool throw_exceptions = true); bool define_property(const PropertyName&, Value value, PropertyAttributes attributes = default_attributes, bool throw_exceptions = true); bool define_property_without_transition(const PropertyName&, Value value, PropertyAttributes attributes = default_attributes, bool throw_exceptions = true); - bool define_accessor(const PropertyName&, Function* getter, Function* setter, PropertyAttributes attributes = default_attributes, bool throw_exceptions = true); + bool define_accessor(const PropertyName&, FunctionObject* getter, FunctionObject* setter, PropertyAttributes attributes = default_attributes, bool throw_exceptions = true); bool define_native_function(PropertyName const&, AK::Function<Value(VM&, GlobalObject&)>, i32 length = 0, PropertyAttributes attributes = default_attributes); bool define_native_property(PropertyName const&, AK::Function<Value(VM&, GlobalObject&)> getter, AK::Function<void(VM&, GlobalObject&, Value)> setter, PropertyAttributes attributes = default_attributes); |