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

LibJS: Update import referrer's [[LoadedModules]] in place

We were previously updating a copy of the list, which meant loading
could not proceed even after a module was loaded.
This commit is contained in:
Andreas Kling 2023-12-03 14:21:21 +01:00
parent 5e67853b49
commit 99106df834
3 changed files with 8 additions and 5 deletions

View file

@ -31,6 +31,7 @@ public:
Realm& realm() { return *m_realm; }
Program const& parse_node() const { return *m_parse_node; }
Vector<ModuleWithSpecifier>& loaded_modules() { return m_loaded_modules; }
Vector<ModuleWithSpecifier> const& loaded_modules() const { return m_loaded_modules; }
HostDefined* host_defined() const { return m_host_defined; }