aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dataview.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-24 12:03:12 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-25 08:30:00 +0000
commit860807b22ab4f7d1c55ce69bb7711dcc777ceefa (patch)
tree5fbec31ef6ec7bc87353dc51fae0124ef3838753 /src/qml/jsruntime/qv4dataview.cpp
parentdd9a6999b674a9197eabbea96b1e5a34c22a8aab (diff)
Implement support for SharedArrayBuffer
We'll still need to hook this up with Worker threads to become useful. Change-Id: Iedae7307edd76368aeba163731856ebe9b32c6b6 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4dataview.cpp')
-rw-r--r--src/qml/jsruntime/qv4dataview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dataview.cpp b/src/qml/jsruntime/qv4dataview.cpp
index 3f0e2fd1a7..d52b9488ac 100644
--- a/src/qml/jsruntime/qv4dataview.cpp
+++ b/src/qml/jsruntime/qv4dataview.cpp
@@ -75,7 +75,7 @@ static uint toIndex(ExecutionEngine *e, const Value &v)
ReturnedValue DataViewCtor::virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *newTarget)
{
Scope scope(f->engine());
- Scoped<ArrayBuffer> buffer(scope, argc ? argv[0] : Primitive::undefinedValue());
+ Scoped<SharedArrayBuffer> buffer(scope, argc ? argv[0] : Primitive::undefinedValue());
if (!newTarget || !buffer)
return scope.engine->throwTypeError();