mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
LibJS: Convert EnvironmentRecord & friends to east-const style
This commit is contained in:
parent
6c6dbcfc36
commit
46f2c23030
6 changed files with 14 additions and 16 deletions
|
@ -21,7 +21,7 @@ void ObjectEnvironmentRecord::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(&m_object);
|
||||
}
|
||||
|
||||
Optional<Variable> ObjectEnvironmentRecord::get_from_scope(const FlyString& name) const
|
||||
Optional<Variable> ObjectEnvironmentRecord::get_from_scope(FlyString const& name) const
|
||||
{
|
||||
auto value = m_object.get(name);
|
||||
if (value.is_empty())
|
||||
|
@ -29,7 +29,7 @@ Optional<Variable> ObjectEnvironmentRecord::get_from_scope(const FlyString& name
|
|||
return Variable { value, DeclarationKind::Var };
|
||||
}
|
||||
|
||||
void ObjectEnvironmentRecord::put_to_scope(const FlyString& name, Variable variable)
|
||||
void ObjectEnvironmentRecord::put_to_scope(FlyString const& name, Variable variable)
|
||||
{
|
||||
m_object.put(name, variable.value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue