mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibJS: Remove unnecessary GlobalObject pointer from Environment
As it turns out, we didn't actually need this pointer. :^)
This commit is contained in:
parent
4a51165f5f
commit
fc04465fa3
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/awesomekling
Commit: fc04465fa3
8 changed files with 17 additions and 32 deletions
|
@ -328,7 +328,7 @@ Completion SourceTextModule::initialize_environment(VM& vm)
|
|||
auto& global_object = realm().global_object();
|
||||
|
||||
// 5. Let env be NewModuleEnvironment(realm.[[GlobalEnv]]).
|
||||
auto* environment = vm.heap().allocate<ModuleEnvironment>(global_object, &realm().global_environment());
|
||||
auto* environment = vm.heap().allocate_without_global_object<ModuleEnvironment>(&realm().global_environment());
|
||||
|
||||
// 6. Set module.[[Environment]] to env.
|
||||
set_environment(environment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue