From e9803945e926d3318fd3f26cfd25308418c55234 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 12 Sep 2017 10:23:40 +0200 Subject: Fix: QQmlBoundSignal really needs a call context And not an empty class "context". This would trip an assert later on when the CreateCallContext instruction would be executed. Change-Id: I6ac7c2df7169990ced77bc9ba1e992d48bb201bb Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4function.cpp') diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp index 594810e498..234e3291d5 100644 --- a/src/qml/jsruntime/qv4function.cpp +++ b/src/qml/jsruntime/qv4function.cpp @@ -83,7 +83,7 @@ Function::~Function() void Function::updateInternalClass(ExecutionEngine *engine, const QList ¶meters) { - internalClass = engine->internalClasses[EngineBase::Class_Empty]; + internalClass = engine->internalClasses[EngineBase::Class_CallContext]; // iterate backwards, so we get the right ordering for duplicate names Scope scope(engine); -- cgit v1.2.3