aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4objectiterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4objectiterator.cpp')
-rw-r--r--src/qml/jsruntime/qv4objectiterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4objectiterator.cpp b/src/qml/jsruntime/qv4objectiterator.cpp
index 109e189ede..fc4a06747f 100644
--- a/src/qml/jsruntime/qv4objectiterator.cpp
+++ b/src/qml/jsruntime/qv4objectiterator.cpp
@@ -109,7 +109,7 @@ void ObjectIterator::next(Value *name, uint *index, Property *pd, PropertyAttrib
shadowed = true;
break;
}
- o = o->prototype();
+ o = o->getPrototypeOf();
}
if (shadowed)
continue;
@@ -118,7 +118,7 @@ void ObjectIterator::next(Value *name, uint *index, Property *pd, PropertyAttrib
}
if (flags & WithProtoChain)
- current->setM(co->prototype());
+ current->setM(co->getPrototypeOf());
else
current->setM(nullptr);