mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibJS: Add filename tracking to Script and Module
This will allow us to resolve modules dynamically loaded from a script.
This commit is contained in:
parent
57c5a59cab
commit
12c2f30c54
Notes:
sideshowbarker
2024-07-17 20:28:56 +09:00
Author: https://github.com/davidot
Commit: 12c2f30c54
Pull-request: https://github.com/SerenityOS/serenity/pull/11957
Reviewed-by: https://github.com/emanuele6
Reviewed-by: https://github.com/linusg
6 changed files with 22 additions and 10 deletions
|
@ -8,9 +8,10 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
Module::Module(Realm& realm)
|
||||
Module::Module(Realm& realm, StringView filename)
|
||||
: m_vm(realm.vm())
|
||||
, m_realm(make_handle(&realm))
|
||||
, m_filename(filename)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue