mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:07:44 +00:00
LibJS: Remove redundant const_cast
The accessed field is mutable, so there's no need for this const_cast.
This commit is contained in:
parent
39baadcddf
commit
6ab6321c2f
1 changed files with 1 additions and 1 deletions
|
@ -1017,7 +1017,7 @@ Reference Identifier::to_reference(Interpreter& interpreter, GlobalObject&) cons
|
||||||
}
|
}
|
||||||
auto reference = interpreter.vm().resolve_binding(string());
|
auto reference = interpreter.vm().resolve_binding(string());
|
||||||
if (reference.environment_coordinate().has_value())
|
if (reference.environment_coordinate().has_value())
|
||||||
const_cast<Identifier&>(*this).m_cached_environment_coordinate = reference.environment_coordinate();
|
m_cached_environment_coordinate = reference.environment_coordinate();
|
||||||
return reference;
|
return reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue