aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4typedarray.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2018-05-27 15:04:23 +0200
committerRobin Burchell <robin.burchell@crimson.no>2018-05-30 20:57:17 +0000
commit19f657d9957e29034c719d6a6b015f7a78ae1a4a (patch)
treea6abb5af66c232426da622aadac40d767ed9b6b0 /src/qml/jsruntime/qv4typedarray.cpp
parente2fee3b9c4bdb1e4ba4834e1a30a250a190f73d2 (diff)
Add the start of a Set from ES7
Based on top of an ArrayObject for now, which is admittedly a bit of a cheat and not matching the "spirit" of the spec. OTOH, that makes it easy to write, and is presumably quite lightweight, so perhaps this is acceptable as a starting point. Change-Id: Ibc98137965b3e75635b960a2f88c251d45e6e837 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r--src/qml/jsruntime/qv4typedarray.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp
index c62c114e53..b3c6f0e094 100644
--- a/src/qml/jsruntime/qv4typedarray.cpp
+++ b/src/qml/jsruntime/qv4typedarray.cpp
@@ -465,7 +465,7 @@ ReturnedValue IntrinsicTypedArrayPrototype::method_entries(const FunctionObject
THROW_TYPE_ERROR();
Scoped<ArrayIteratorObject> ao(scope, scope.engine->newArrayIteratorObject(O));
- ao->d()->iterationKind = ArrayIteratorKind::KeyValueIteratorKind;
+ ao->d()->iterationKind = IteratorKind::KeyValueIteratorKind;
return ao->asReturnedValue();
}
@@ -477,7 +477,7 @@ ReturnedValue IntrinsicTypedArrayPrototype::method_keys(const FunctionObject *b,
THROW_TYPE_ERROR();
Scoped<ArrayIteratorObject> ao(scope, scope.engine->newArrayIteratorObject(O));
- ao->d()->iterationKind = ArrayIteratorKind::KeyIteratorKind;
+ ao->d()->iterationKind = IteratorKind::KeyIteratorKind;
return ao->asReturnedValue();
}
@@ -489,7 +489,7 @@ ReturnedValue IntrinsicTypedArrayPrototype::method_values(const FunctionObject *
THROW_TYPE_ERROR();
Scoped<ArrayIteratorObject> ao(scope, scope.engine->newArrayIteratorObject(O));
- ao->d()->iterationKind = ArrayIteratorKind::ValueIteratorKind;
+ ao->d()->iterationKind = IteratorKind::ValueIteratorKind;
return ao->asReturnedValue();
}