mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibJS+LibWeb: Add a custom host hook to log unparsed date strings
This lets us log when our Date.parse implementation was unable to handle a string found on the web.
This commit is contained in:
parent
921a9cef62
commit
8d6f36f8d6
Notes:
github-actions[bot]
2024-09-08 16:25:58 +00:00
Author: https://github.com/trflynn89
Commit: 8d6f36f8d6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1331
4 changed files with 13 additions and 3 deletions
|
@ -545,6 +545,10 @@ ErrorOr<void> initialize_main_thread_vm(HTML::EventLoop::Type type)
|
|||
HTML::fetch_single_imported_module_script(realm, url.release_value(), *fetch_client, destination, fetch_options, *settings_object, fetch_referrer, module_request, perform_fetch, on_single_fetch_complete);
|
||||
};
|
||||
|
||||
s_main_thread_vm->host_unrecognized_date_string = [](StringView date) {
|
||||
dbgln("Unable to parse date string: \"{}\"", date);
|
||||
};
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue