aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4jsonobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4jsonobject.cpp')
-rw-r--r--src/v4/qv4jsonobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/v4/qv4jsonobject.cpp b/src/v4/qv4jsonobject.cpp
index d3a71acff9..22cd8ea8d5 100644
--- a/src/v4/qv4jsonobject.cpp
+++ b/src/v4/qv4jsonobject.cpp
@@ -281,8 +281,7 @@ bool Parser::parseMember(Object *o)
if (!parseValue(&val))
return false;
- PropertyDescriptor *p = o->insertMember(context->engine->newIdentifier(key), Attr_Data);
- p->attrs = Attr_Data;
+ Property *p = o->insertMember(context->engine->newIdentifier(key), Attr_Data);
p->value = val;
END;
@@ -782,10 +781,11 @@ QString Stringify::JO(Object *o)
while (1) {
String *name;
uint index;
- PropertyDescriptor *pd = it.next(&name, &index);
+ PropertyAttributes attrs;
+ Property *pd = it.next(&name, &index, &attrs);
if (!pd)
break;
- Value v = o->getValueChecked(ctx, pd);
+ Value v = o->getValueChecked(ctx, pd, attrs);
QString key;
if (name)
key = name->toQString();