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:
parent
97aaf95265
commit
d5d732cc87
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue