diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/AST.cpp b/Userland/Libraries/LibJS/AST.cpp index 8eb93d3ded..3b9ca881fc 100644 --- a/Userland/Libraries/LibJS/AST.cpp +++ b/Userland/Libraries/LibJS/AST.cpp @@ -1017,7 +1017,7 @@ Reference Identifier::to_reference(Interpreter& interpreter, GlobalObject&) cons } auto reference = interpreter.vm().resolve_binding(string()); 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; } |