mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +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
6 changed files with 22 additions and 10 deletions
|
@ -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]]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue