mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +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
|
@ -101,7 +101,7 @@ SheetGlobalObject::~SheetGlobalObject()
|
|||
{
|
||||
}
|
||||
|
||||
JS::Value SheetGlobalObject::get(const JS::PropertyName& name, JS::Value receiver, bool without_side_effects) const
|
||||
JS::Value SheetGlobalObject::get(const JS::PropertyName& name, JS::Value receiver, JS::AllowSideEffects allow_side_effects) const
|
||||
{
|
||||
if (name.is_string()) {
|
||||
if (name.as_string() == "value") {
|
||||
|
@ -117,7 +117,7 @@ JS::Value SheetGlobalObject::get(const JS::PropertyName& name, JS::Value receive
|
|||
}
|
||||
}
|
||||
|
||||
return GlobalObject::get(name, receiver, without_side_effects);
|
||||
return GlobalObject::get(name, receiver, allow_side_effects);
|
||||
}
|
||||
|
||||
bool SheetGlobalObject::put(const JS::PropertyName& name, JS::Value value, JS::Value receiver)
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
virtual ~SheetGlobalObject() override;
|
||||
|
||||
virtual JS::Value get(const JS::PropertyName&, JS::Value receiver = {}, bool without_side_effects = false) const override;
|
||||
virtual JS::Value get(const JS::PropertyName&, JS::Value receiver = {}, JS::AllowSideEffects = JS::AllowSideEffects::Yes) const override;
|
||||
virtual bool put(const JS::PropertyName&, JS::Value value, JS::Value receiver = {}) override;
|
||||
virtual void initialize_global_object() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue