diff options
author | Linus Groh <mail@linusgroh.de> | 2021-04-24 18:25:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-24 20:11:04 +0200 |
commit | 62c7608a2575beba8427887c008d122456109a8e (patch) | |
tree | f5c5db38a9018876ff7061d0c385d56f31fa168a /Userland/Libraries/LibWeb/Bindings | |
parent | 08373090ae6914d28064eab403caf5774b4564dc (diff) | |
download | serenity-62c7608a2575beba8427887c008d122456109a8e.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp index fb01437707..44edb408d0 100644 --- a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp +++ b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp @@ -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; } |