mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS+LibWeb: Move script parse time logging from JS::Script to LibWeb
Let's only log HTML::ClassicScript parse times for now. Otherwise things will get excessively noisy in test-js and the test262 runner.
This commit is contained in:
@@ -36,7 +36,9 @@ NonnullRefPtr<ClassicScript> ClassicScript::create(String filename, StringView s
|
||||
// FIXME: 9. Set script's parse error and error to rethrow to null.
|
||||
|
||||
// 10. Let result be ParseScript(source, settings's Realm, script).
|
||||
auto parse_timer = Core::ElapsedTimer::start_new();
|
||||
auto result = JS::Script::parse(source, realm, script->filename());
|
||||
dbgln("ClassicScript: Parsed {} in {}ms", script->filename(), parse_timer.elapsed());
|
||||
|
||||
// 11. If result is a list of errors, then:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user