aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/qv4engine.cpp')
-rw-r--r--src/qml/qml/v4/qv4engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/v4/qv4engine.cpp b/src/qml/qml/v4/qv4engine.cpp
index c0119a7412..f0ceaf79fc 100644
--- a/src/qml/qml/v4/qv4engine.cpp
+++ b/src/qml/qml/v4/qv4engine.cpp
@@ -182,7 +182,7 @@ ExecutionEngine::ExecutionEngine(QQmlJS::EvalISelFactory *factory)
booleanCtor = Value::fromObject(new (memoryManager) BooleanCtor(rootContext));
arrayCtor = Value::fromObject(new (memoryManager) ArrayCtor(rootContext));
functionCtor = Value::fromObject(new (memoryManager) FunctionCtor(rootContext));
- dateCtor = Value::fromObject(DatePrototype::newConstructor(rootContext));
+ dateCtor = Value::fromObject(new (memoryManager) DateCtor(rootContext));
regExpCtor = Value::fromObject(new (memoryManager) RegExpCtor(rootContext));
errorCtor = Value::fromObject(new (memoryManager) ErrorCtor(rootContext));
evalErrorCtor = Value::fromObject(new (memoryManager) EvalErrorCtor(rootContext));