mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 18:15:19 +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:
@@ -8,8 +8,9 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
Script::Script(URL base_url)
|
||||
Script::Script(URL base_url, String filename)
|
||||
: m_base_url(move(base_url))
|
||||
, m_filename(move(filename))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user