LibJS: Convert EnvironmentRecord & friends to east-const style

This commit is contained in:
Andreas Kling
2021-06-21 23:26:50 +02:00
parent 6c6dbcfc36
commit 46f2c23030
Notes: sideshowbarker 2024-07-18 11:56:30 +09:00
6 changed files with 14 additions and 16 deletions

View File

@@ -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);
}