diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/DOM/EventDispatcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibWeb/DOM/EventDispatcher.cpp b/Libraries/LibWeb/DOM/EventDispatcher.cpp index 682ce91a09..eb3e212db9 100644 --- a/Libraries/LibWeb/DOM/EventDispatcher.cpp +++ b/Libraries/LibWeb/DOM/EventDispatcher.cpp @@ -45,10 +45,10 @@ void EventDispatcher::dispatch(EventTarget& target, NonnullRefPtr<Event> event) auto& global_object = function.global_object(); auto* this_value = Bindings::wrap(global_object, target); - auto& interpreter = target.script_execution_context()->interpreter(); - (void)interpreter.call(function, this_value, Bindings::wrap(global_object, target)); - if (interpreter.exception()) - interpreter.vm().clear_exception(); + auto& vm = global_object.vm(); + (void)vm.call(function, this_value, Bindings::wrap(global_object, target)); + if (vm.exception()) + vm.clear_exception(); } } |