aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-03 21:55:57 +0200
committerLars Knoll <lars.knoll@qt.io>2018-06-04 13:02:18 +0000
commit3e351e6208b6b83a46909c9ac65eb8a5c878d707 (patch)
treeae313f7919c27e371d067a2d59ac630a24624f6d
parentab5485ccfcb44042be8b1280f4b0e57fae52893a (diff)
The length property of RegExp should be configurable
Change-Id: Ie19dc556d13081a1b750695e81d6b4e5a6b3afac Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/qml/jsruntime/qv4regexpobject.cpp2
-rw-r--r--tests/auto/qml/ecmascripttests/TestExpectations1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp
index 52dd4a5a57..4fce63c5cf 100644
--- a/src/qml/jsruntime/qv4regexpobject.cpp
+++ b/src/qml/jsruntime/qv4regexpobject.cpp
@@ -276,7 +276,7 @@ void RegExpPrototype::init(ExecutionEngine *engine, Object *constructor)
ScopedObject ctor(scope, constructor);
ctor->defineReadonlyProperty(engine->id_prototype(), (o = this));
- ctor->defineReadonlyProperty(engine->id_length(), Primitive::fromInt32(2));
+ ctor->defineReadonlyConfigurableProperty(engine->id_length(), Primitive::fromInt32(2));
ctor->addSymbolSpecies();
// Properties deprecated in the spec but required by "the web" :(
diff --git a/tests/auto/qml/ecmascripttests/TestExpectations b/tests/auto/qml/ecmascripttests/TestExpectations
index 4f499824f7..b0a18339ce 100644
--- a/tests/auto/qml/ecmascripttests/TestExpectations
+++ b/tests/auto/qml/ecmascripttests/TestExpectations
@@ -3560,7 +3560,6 @@ language/expressions/compound-assignment/S11.13.2_A7.8_T4.js fails
language/expressions/compound-assignment/S11.13.2_A7.9_T4.js fails
language/expressions/conditional/tco-cond.js strictFails
language/expressions/conditional/tco-pos.js strictFails
-language/expressions/delete/11.4.1-5-a-28-s.js strictFails
language/expressions/delete/super-property.js fails
language/expressions/exponentiation/applying-the-exp-operator_A7.js fails
language/expressions/exponentiation/applying-the-exp-operator_A8.js fails