mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibJS: Replace GlobalObject with VM in Reference AOs [Part 6/19]
This commit is contained in:
parent
275a7a0c0a
commit
ae9e031f56
Notes:
sideshowbarker
2024-07-17 08:00:35 +09:00
Author: https://github.com/linusg
Commit: ae9e031f56
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
10 changed files with 88 additions and 77 deletions
|
@ -1726,7 +1726,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto reference_or_error = g_vm->resolve_binding(variable_name, &global_environment);
|
||||
if (reference_or_error.is_error())
|
||||
return {};
|
||||
auto value_or_error = reference_or_error.value().get_value(interpreter->global_object());
|
||||
auto value_or_error = reference_or_error.value().get_value(*g_vm);
|
||||
if (value_or_error.is_error())
|
||||
return {};
|
||||
auto variable = value_or_error.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue