aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4regexpobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4regexpobject.cpp')
-rw-r--r--src/v4/qv4regexpobject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/v4/qv4regexpobject.cpp b/src/v4/qv4regexpobject.cpp
index 3717da6e57..cc1d84747a 100644
--- a/src/v4/qv4regexpobject.cpp
+++ b/src/v4/qv4regexpobject.cpp
@@ -73,9 +73,8 @@ RegExpObject::RegExpObject(ExecutionEngine *engine, RegExp* value, bool global)
vtbl = &static_vtbl;
type = Type_RegExpObject;
- PropertyDescriptor *lastIndexProperty = insertMember(engine->newIdentifier(QStringLiteral("lastIndex")),
+ Property *lastIndexProperty = insertMember(engine->newIdentifier(QStringLiteral("lastIndex")),
Attr_NotEnumerable|Attr_NotConfigurable);
- lastIndexProperty->attrs = Attr_NotEnumerable|Attr_NotConfigurable;
lastIndexProperty->value = Value::fromInt32(0);
if (!this->value)
return;
@@ -98,7 +97,7 @@ void RegExpObject::markObjects(Managed *that)
Object::markObjects(that);
}
-PropertyDescriptor *RegExpObject::lastIndexProperty(ExecutionContext *ctx)
+Property *RegExpObject::lastIndexProperty(ExecutionContext *ctx)
{
assert(0 == internalClass->find(ctx->engine->newIdentifier(QStringLiteral("lastIndex"))));
return &memberData[0];