summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/DOM/Node.cpp')
-rw-r--r--Libraries/LibWeb/DOM/Node.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Node.cpp b/Libraries/LibWeb/DOM/Node.cpp
index 97120bb380..b8c1636380 100644
--- a/Libraries/LibWeb/DOM/Node.cpp
+++ b/Libraries/LibWeb/DOM/Node.cpp
@@ -28,6 +28,7 @@
#include <LibJS/AST.h>
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/Function.h>
+#include <LibJS/Runtime/MarkedValueList.h>
#include <LibJS/Runtime/ScriptFunction.h>
#include <LibWeb/Bindings/EventWrapper.h>
#include <LibWeb/Bindings/NodeWrapper.h>
@@ -142,7 +143,9 @@ void Node::dispatch_event(NonnullRefPtr<Event> event)
dbg() << "calling event listener with this=" << this_value;
#endif
auto* event_wrapper = wrap(function->heap(), *event);
- document().interpreter().call(function, this_value, { event_wrapper });
+ JS::MarkedValueList arguments(function->heap());
+ arguments.append(event_wrapper);
+ document().interpreter().call(function, this_value, move(arguments));
}
}