mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibJS+LibWeb: Log JavaScript exceptions raised by web content
Instead of hiding JS exceptions raised on the web, we now print them to the debug log. This will make it a bit easier to work out why some web pages aren't working right. :^)
This commit is contained in:
parent
2dd03a4200
commit
01c8765519
3 changed files with 10 additions and 4 deletions
|
@ -488,8 +488,10 @@ Color Document::visited_link_color() const
|
|||
static 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue