aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4errorobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index af420471ea..c1724f84ca 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -241,7 +241,7 @@ ReturnedValue ErrorCtor::construct(const Managed *that, CallData *callData)
ReturnedValue ErrorCtor::call(const Managed *that, CallData *callData)
{
- return static_cast<const Object *>(that)->construct(callData);
+ return static_cast<const FunctionObject *>(that)->callAsConstructor(callData->args, callData->argc());
}
void Heap::EvalErrorCtor::init(QV4::ExecutionContext *scope)