diff options
Diffstat (limited to 'src/v4/qv4regexpobject.cpp')
-rw-r--r-- | src/v4/qv4regexpobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/v4/qv4regexpobject.cpp b/src/v4/qv4regexpobject.cpp index 94f7f795c8..32db30b51c 100644 --- a/src/v4/qv4regexpobject.cpp +++ b/src/v4/qv4regexpobject.cpp @@ -73,7 +73,8 @@ RegExpObject::RegExpObject(ExecutionEngine *engine, RegExp* value, bool global) vtbl = &static_vtbl; type = Type_RegExpObject; - PropertyDescriptor *lastIndexProperty = insertMember(engine->newIdentifier(QStringLiteral("lastIndex"))); + PropertyDescriptor *lastIndexProperty = insertMember(engine->newIdentifier(QStringLiteral("lastIndex")), + Attr_NotEnumerable|Attr_NotConfigurable); lastIndexProperty->type = PropertyDescriptor::Data; lastIndexProperty->writable = PropertyDescriptor::Enabled; lastIndexProperty->enumerable = PropertyDescriptor::Disabled; |