mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02: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:
Notes:
sideshowbarker
2024-07-17 20:28:56 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/12c2f30c548 Pull-request: https://github.com/SerenityOS/serenity/pull/11957 Reviewed-by: https://github.com/emanuele6 Reviewed-by: https://github.com/linusg
@@ -22,7 +22,7 @@ public:
|
||||
Program const& parse_node() const { return *m_ecmascript_code; }
|
||||
|
||||
private:
|
||||
explicit SourceTextModule(Realm&, NonnullRefPtr<Program>);
|
||||
explicit SourceTextModule(Realm&, StringView filename, NonnullRefPtr<Program>);
|
||||
|
||||
NonnullRefPtr<Program> m_ecmascript_code; // [[ECMAScriptCode]]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user