mirror of
https://github.com/RGBCube/serenity
synced 2025-07-13 14:47:36 +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
8 changed files with 17 additions and 32 deletions
|
@ -53,7 +53,7 @@ ThrowCompletionOr<void> JS::SyntheticModule::link(VM& vm)
|
|||
auto& global_object = realm().global_object();
|
||||
|
||||
// 3. 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());
|
||||
|
||||
// 4. Set module.[[Environment]] to env.
|
||||
set_environment(environment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue