mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibJS: Store Module::environment() as ModuleEnvironment
Let's use a more specific type here to allow for devirtualization.
This commit is contained in:
parent
603df37a88
commit
8fcff2fa18
Notes:
github-actions[bot]
2025-03-20 17:52:55 +00:00
Author: https://github.com/awesomekling
Commit: 8fcff2fa18
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4017
6 changed files with 16 additions and 13 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <AK/QuickSort.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/ModuleEnvironment.h>
|
||||
#include <LibJS/Runtime/ModuleNamespaceObject.h>
|
||||
|
||||
namespace JS {
|
||||
|
@ -173,7 +174,7 @@ ThrowCompletionOr<Value> ModuleNamespaceObject::internal_get(PropertyKey const&
|
|||
}
|
||||
|
||||
// 10. Let targetEnv be targetModule.[[Environment]].
|
||||
auto* target_environment = target_module->environment();
|
||||
auto target_environment = target_module->environment();
|
||||
|
||||
// 11. If targetEnv is empty, throw a ReferenceError exception.
|
||||
if (!target_environment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue