mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibJS: Pass JS::Function around by reference more
This commit is contained in:
parent
97382677bd
commit
aaf35112a4
8 changed files with 22 additions and 22 deletions
|
@ -146,7 +146,7 @@ void Node::dispatch_event(NonnullRefPtr<Event> event)
|
|||
auto* event_wrapper = wrap(heap, *event);
|
||||
JS::MarkedValueList arguments(heap);
|
||||
arguments.append(event_wrapper);
|
||||
document().interpreter().call(&function, this_value, move(arguments));
|
||||
document().interpreter().call(function, this_value, move(arguments));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue