mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-18 16:21:52 +00:00
LibJS/JIT: Resolve the EnvironmentVariableCache pointers at JIT time
This commit is contained in:
parent
a616a682fe
commit
536b9c29e4
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/awesomekling
Commit: 536b9c29e4
Pull-request: https://github.com/SerenityOS/serenity/pull/21817
5 changed files with 17 additions and 13 deletions
|
@ -683,7 +683,10 @@ ThrowCompletionOr<void> ConcatString::execute_impl(Bytecode::Interpreter& interp
|
|||
|
||||
ThrowCompletionOr<void> GetVariable::execute_impl(Bytecode::Interpreter& interpreter) const
|
||||
{
|
||||
interpreter.accumulator() = TRY(get_variable(interpreter, interpreter.current_executable().get_identifier(m_identifier), m_cache_index));
|
||||
interpreter.accumulator() = TRY(get_variable(
|
||||
interpreter,
|
||||
interpreter.current_executable().get_identifier(m_identifier),
|
||||
interpreter.current_executable().environment_variable_caches[m_cache_index]));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue