aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4arrayobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-12 23:51:14 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-23 08:13:29 +0000
commitc9712699ca7ec8c04afa3cb70afebf4ee146d105 (patch)
tree6debe8389165296ae5d3ca38806b937174be57d1 /src/qml/jsruntime/qv4arrayobject.cpp
parent1abbc4aa2c3f8f0b76ae524785711dc73fd69120 (diff)
Implement TypedArray.prototype.copyWithin
Change-Id: If0d33cc40e79d0609ad205cfe5a08d2266403867 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4arrayobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp
index 450916fbf7..544be06664 100644
--- a/src/qml/jsruntime/qv4arrayobject.cpp
+++ b/src/qml/jsruntime/qv4arrayobject.cpp
@@ -432,7 +432,7 @@ ReturnedValue ArrayPrototype::method_copyWithin(const FunctionObject *b, const V
double len = instance->getLength();
double target = argv[0].toInteger();
- double start = argv[1].toInteger();
+ double start = argc > 1 ? argv[1].toInteger() : 0;
double end = len;
if (argc > 2 && !argv[2].isUndefined()) {