1
Fork 0
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:
Linus Groh 2020-05-16 18:42:04 +01:00 committed by Andreas Kling
parent ad3871b64e
commit 91f70a9258

View file

@ -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()) {