1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

LibJS+LibWeb: Move exception logging and remove should_log_exceptions

LibWeb is now responsible for logging unhandled exceptions itself,
which means set_should_log_exceptions() is no longer used and can be
removed. It turned out to be not the best option for web page exception
logging, as we would have no indication regarding whether the exception
was later handled of not.
This commit is contained in:
Linus Groh 2021-04-24 18:25:05 +02:00 committed by Andreas Kling
parent 08373090ae
commit 62c7608a25
4 changed files with 26 additions and 32 deletions

View file

@ -12,10 +12,8 @@ namespace Web::Bindings {
JS::VM& main_thread_vm()
{
static RefPtr<JS::VM> vm;
if (!vm) {
if (!vm)
vm = JS::VM::create();
vm->set_should_log_exceptions(true);
}
return *vm;
}