aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-10 15:55:58 +0200
committerLars Knoll <lars.knoll@qt.io>2018-08-23 08:13:04 +0000
commit61e67d6f6d7fd49089bf5dbcc5049838d8400603 (patch)
tree078644f2f09768bf5e10d3f0b8183cba0f54d96f
parent271e0d56bce54c0a662fe0e948f28a1886b14a55 (diff)
Fix DataView constructor
Change-Id: I5d2eebd7bb0424462f844922b7168a30f5ca66cb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/qml/jsruntime/qv4dataview.cpp2
-rw-r--r--tests/auto/qml/ecmascripttests/TestExpectations1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4dataview.cpp b/src/qml/jsruntime/qv4dataview.cpp
index d959b1667b..89114481f5 100644
--- a/src/qml/jsruntime/qv4dataview.cpp
+++ b/src/qml/jsruntime/qv4dataview.cpp
@@ -86,7 +86,7 @@ void DataViewPrototype::init(ExecutionEngine *engine, Object *ctor)
{
Scope scope(engine);
ScopedObject o(scope);
- ctor->defineReadonlyConfigurableProperty(engine->id_length(), Primitive::fromInt32(3));
+ ctor->defineReadonlyConfigurableProperty(engine->id_length(), Primitive::fromInt32(1));
ctor->defineReadonlyProperty(engine->id_prototype(), (o = this));
defineDefaultProperty(engine->id_constructor(), (o = ctor));
defineAccessorProperty(QStringLiteral("buffer"), method_get_buffer, nullptr);
diff --git a/tests/auto/qml/ecmascripttests/TestExpectations b/tests/auto/qml/ecmascripttests/TestExpectations
index 998b607695..cf5c234a0a 100644
--- a/tests/auto/qml/ecmascripttests/TestExpectations
+++ b/tests/auto/qml/ecmascripttests/TestExpectations
@@ -219,7 +219,6 @@ built-ins/Boolean/proto-from-ctor-realm.js fails
built-ins/DataView/custom-proto-access-throws.js fails
built-ins/DataView/custom-proto-if-object-is-used.js fails
built-ins/DataView/detached-buffer.js fails
-built-ins/DataView/length.js fails
built-ins/DataView/newtarget-undefined-throws.js fails
built-ins/DataView/proto-from-ctor-realm.js fails
built-ins/DataView/prototype/byteLength/detached-buffer.js fails