*hasProperty = true;
return args->context->callData->args[index].asReturnedValue();
}
+ if (hasProperty)
+ *hasProperty = false;
return Encode::undefined();
}
return Encode::undefined();
}
+ if (hasProperty)
+ *hasProperty = true;
+
ExecutionEngine *v4 = m->engine();
QQmlEnginePrivate *ep = v4->v8Engine->engine() ? QQmlEnginePrivate::get(v4->v8Engine->engine()) : 0;
if (ep)
QV4::ExecutionEngine *e = m->engine();
QmlListWrapper *w = m->as<QmlListWrapper>();
- if (!w)
+ if (!w) {
+ if (hasProperty)
+ *hasProperty = false;
return e->currentContext()->throwTypeError();
+ }
quint32 count = w->property.count ? w->property.count(&w->property) : 0;
- if (index < count && w->property.at)
+ if (index < count && w->property.at) {
+ if (hasProperty)
+ *hasProperty = true;
return QV4::QObjectWrapper::wrap(e, w->property.at(&w->property, index));
+ }
+ if (hasProperty)
+ *hasProperty = false;
return Primitive::undefinedValue().asReturnedValue();
}
{
QV4::ExecutionEngine *v4 = m->engine();
NamedNodeMap *r = m->as<NamedNodeMap>();
- if (!r)
+ if (!r) {
+ if (hasProperty)
+ *hasProperty = false;
return v4->currentContext()->throwTypeError();
+ }
QV8Engine *engine = v4->v8Engine;
{
QV4::ExecutionEngine *v4 = m->engine();
NodeList *r = m->as<NodeList>();
- if (!r)
+ if (!r) {
+ if (hasProperty)
+ *hasProperty = false;
return v4->currentContext()->throwTypeError();
+ }
QV8Engine *engine = v4->v8Engine;
QV4::ExecutionEngine *v4 = m->engine();
QV4::Scope scope(v4);
QV4::Scoped<QQuickJSContext2DPixelData> r(scope, m->as<QQuickJSContext2DPixelData>());
- if (!m)
+ if (!m) {
+ if (hasProperty)
+ *hasProperty = false;
return m->engine()->currentContext()->throwTypeError();
+ }
if (r && index < static_cast<quint32>(r->image.width() * r->image.height() * 4)) {
if (hasProperty)