mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +00:00
LibJS: Replace boolean without_side_effects parameters with an enum
This commit is contained in:
parent
864beb0bd5
commit
dcb55db99b
16 changed files with 56 additions and 51 deletions
|
@ -74,7 +74,7 @@ public:
|
|||
|
||||
GlobalObject& global_object() const { return *shape().global_object(); }
|
||||
|
||||
virtual Value get(const PropertyName&, Value receiver = {}, bool without_side_effects = false) const;
|
||||
virtual Value get(const PropertyName&, Value receiver = {}, AllowSideEffects = AllowSideEffects::Yes) const;
|
||||
Value get_without_side_effects(const PropertyName&) const;
|
||||
|
||||
virtual bool has_property(const PropertyName&) const;
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
|
||||
virtual bool put(const PropertyName&, Value, Value receiver = {});
|
||||
|
||||
Value get_own_property(const PropertyName&, Value receiver, bool without_side_effects = false) const;
|
||||
Value get_own_property(const PropertyName&, Value receiver, AllowSideEffects = AllowSideEffects::Yes) const;
|
||||
MarkedValueList get_own_properties(PropertyKind, bool only_enumerable_properties = false, GetOwnPropertyReturnType = GetOwnPropertyReturnType::All) const;
|
||||
MarkedValueList get_enumerable_own_property_names(PropertyKind) const;
|
||||
virtual Optional<PropertyDescriptor> get_own_property_descriptor(const PropertyName&) const;
|
||||
|
@ -163,7 +163,7 @@ protected:
|
|||
explicit Object(GlobalObjectTag);
|
||||
Object(ConstructWithoutPrototypeTag, GlobalObject&);
|
||||
|
||||
virtual Value get_by_index(u32 property_index, bool without_side_effects = false) const;
|
||||
virtual Value get_by_index(u32 property_index, AllowSideEffects = AllowSideEffects::Yes) const;
|
||||
virtual bool put_by_index(u32 property_index, Value);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue