1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-29 03:42:07 +00:00

LibJS/JIT: Resolve the GetGlobal identifier at JIT time

This commit is contained in:
Andreas Kling 2023-11-05 14:19:42 +01:00
parent c92954db36
commit 234ed2d466
4 changed files with 12 additions and 13 deletions

View file

@ -697,7 +697,7 @@ ThrowCompletionOr<void> GetCalleeAndThisFromEnvironment::execute_impl(Bytecode::
ThrowCompletionOr<void> GetGlobal::execute_impl(Bytecode::Interpreter& interpreter) const
{
interpreter.accumulator() = TRY(get_global(interpreter, m_identifier, m_cache_index));
interpreter.accumulator() = TRY(get_global(interpreter, interpreter.current_executable().get_identifier(m_identifier), m_cache_index));
return {};
}