mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:05:10 +00:00
LibWeb+LibJS: Remember source filenames when using HTML::Script
It's a lot easier to debug JavaScript problems if you can see which file the errors are in. :^)
This commit is contained in:
parent
6595db9ecf
commit
1484980f8f
7 changed files with 17 additions and 14 deletions
|
@ -17,12 +17,14 @@ public:
|
|||
virtual ~Script();
|
||||
|
||||
URL const& base_url() const { return m_base_url; }
|
||||
String const& filename() const { return m_filename; }
|
||||
|
||||
protected:
|
||||
explicit Script(URL base_url);
|
||||
Script(URL base_url, String filename);
|
||||
|
||||
private:
|
||||
URL m_base_url;
|
||||
String m_filename;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue