mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +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
|
@ -52,12 +52,12 @@ void DeclarativeEnvironmentRecord::visit_edges(Visitor& visitor)
|
|||
visitor.visit(it.value.value);
|
||||
}
|
||||
|
||||
Optional<Variable> DeclarativeEnvironmentRecord::get_from_scope(const FlyString& name) const
|
||||
Optional<Variable> DeclarativeEnvironmentRecord::get_from_scope(FlyString const& name) const
|
||||
{
|
||||
return m_variables.get(name);
|
||||
}
|
||||
|
||||
void DeclarativeEnvironmentRecord::put_to_scope(const FlyString& name, Variable variable)
|
||||
void DeclarativeEnvironmentRecord::put_to_scope(FlyString const& name, Variable variable)
|
||||
{
|
||||
m_variables.set(name, variable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue