mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 09:04:30 +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:
committed by
Andreas Kling
parent
ad3871b64e
commit
91f70a9258
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user