1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:07:35 +00:00

LibWeb: Fix EVENT_DEBUG dump compilation

This commit is contained in:
Kevin Meyer 2020-07-10 23:38:19 +02:00 committed by Andreas Kling
parent 97aaf95265
commit d5d732cc87

View file

@ -135,7 +135,7 @@ void Node::dispatch_event(NonnullRefPtr<Event> event)
if (listener.event_name == event->type()) {
auto& function = const_cast<EventListener&>(*listener.listener).function();
#ifdef EVENT_DEBUG
static_cast<const JS::ScriptFunction*>(function)->body().dump(0);
static_cast<const JS::ScriptFunction&>(function).body().dump(0);
#endif
auto& global_object = function.global_object();
auto* this_value = wrap(global_object, *this);