1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

LibJS: Implement GetImportedModule and call it where appropriate

This breaks module loading temporarily while transitioning.
This commit is contained in:
Andreas Kling 2023-12-02 13:16:45 +01:00
parent a24c543921
commit 82977ab44b
3 changed files with 41 additions and 17 deletions

View file

@ -82,6 +82,8 @@ protected:
virtual ThrowCompletionOr<void> initialize_environment(VM& vm);
virtual ThrowCompletionOr<void> execute_module(VM& vm, GCPtr<PromiseCapability> capability = {});
[[nodiscard]] NonnullGCPtr<Module> get_imported_module(ModuleRequest const&);
void execute_async_module(VM& vm);
void gather_available_ancestors(Vector<CyclicModule*>& exec_list);
void async_module_execution_fulfilled(VM& vm);