1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

LibJS: Support LoadRequestedModule AO on SyntheticModule records

This allows test-js to run all the module tests in the new world.
This commit is contained in:
Andreas Kling 2023-12-03 11:25:12 +01:00
parent 4b1053e327
commit fc31a0d506
5 changed files with 47 additions and 34 deletions

View file

@ -848,7 +848,7 @@ void continue_dynamic_import(NonnullGCPtr<PromiseCapability> promise_capability,
auto& module = *module_completion.value();
// 3. Let loadPromise be module.LoadRequestedModules().
auto& load_promise = verify_cast<CyclicModule>(module).load_requested_modules({});
auto& load_promise = module.load_requested_modules({});
// 4. Let rejectedClosure be a new Abstract Closure with parameters (reason) that captures promiseCapability and performs the
// following steps when called: