mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:24:57 +00:00
LibWeb: Log URL when loading <script> with src attribute
This makes it easier to debug failing scripts as most websites don't inline huge amounts of JavaScript.
This commit is contained in:
parent
ad3871b64e
commit
91f70a9258
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent)
|
|||
return;
|
||||
}
|
||||
|
||||
dbg() << "Parsing and running script from " << src_url;
|
||||
auto parser = JS::Parser(JS::Lexer(source));
|
||||
auto program = parser.parse_program();
|
||||
if (parser.has_errors()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue