diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-03 21:55:57 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 13:02:18 +0000 |
commit | 3e351e6208b6b83a46909c9ac65eb8a5c878d707 (patch) | |
tree | ae313f7919c27e371d067a2d59ac630a24624f6d /src/qml/jsruntime/qv4regexpobject.cpp | |
parent | ab5485ccfcb44042be8b1280f4b0e57fae52893a (diff) |
The length property of RegExp should be configurable
Change-Id: Ie19dc556d13081a1b750695e81d6b4e5a6b3afac
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 2 |
1 files changed, 1 insertions, 1 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" :( |