diff options
author | Lars Knoll <[email protected]> | 2018-08-14 19:54:31 +0200 |
---|---|---|
committer | Lars Knoll <[email protected]> | 2018-08-23 08:13:35 +0000 |
commit | 34094f6918993dd5d10b2eb38203a54f5168d114 (patch) | |
tree | 8aa89934d34d6bab6a407e73e5d9c2765d70d7a3 /src/qml/jsruntime/qv4dateobject.cpp | |
parent | 89a053b53f2d2bbf94bc86e133469151720b2433 (diff) |
Fix toLocaleString implementations in (Typed)Array.prototype
Change-Id: Idcabd68b1651ad3cae315a16cb0e1361cba21253
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dateobject.cpp b/src/qml/jsruntime/qv4dateobject.cpp index 3efd626685..7335dd1ba0 100644 --- a/src/qml/jsruntime/qv4dateobject.cpp +++ b/src/qml/jsruntime/qv4dateobject.cpp @@ -806,7 +806,7 @@ void DatePrototype::init(ExecutionEngine *engine, Object *ctor) defineDefaultProperty(engine->id_toString(), method_toString, 0); defineDefaultProperty(QStringLiteral("toDateString"), method_toDateString, 0); defineDefaultProperty(QStringLiteral("toTimeString"), method_toTimeString, 0); - defineDefaultProperty(QStringLiteral("toLocaleString"), method_toLocaleString, 0); + defineDefaultProperty(engine->id_toLocaleString(), method_toLocaleString, 0); defineDefaultProperty(QStringLiteral("toLocaleDateString"), method_toLocaleDateString, 0); defineDefaultProperty(QStringLiteral("toLocaleTimeString"), method_toLocaleTimeString, 0); defineDefaultProperty(engine->id_valueOf(), method_valueOf, 0); |