aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_objects.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-12 09:00:19 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-12 09:09:55 +0100
commit446bea86f5753bccd1772347aa1e753ddf2b44f8 (patch)
treeb9db4ac4d45f15373c58905e38b49baab3794008 /qmljs_objects.cpp
parent463ed070beb7cc5ad15692b6ea2cc403695b2a49 (diff)
Fix hasProperty internal method
Change-Id: Ifd0b19d6ff011bb85475e6654681a022c8f58e2d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_objects.cpp')
-rw-r--r--qmljs_objects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_objects.cpp b/qmljs_objects.cpp
index 431d508160..d7d0365db3 100644
--- a/qmljs_objects.cpp
+++ b/qmljs_objects.cpp
@@ -255,8 +255,8 @@ void Object::__put__(ExecutionContext *ctx, String *name, Value value)
// Section 8.12.6
bool Object::__hasProperty__(const ExecutionContext *ctx, String *name) const
{
- if (members)
- return members->find(name) != 0;
+ if (members && members->find(name) != 0)
+ return true;
return prototype ? prototype->__hasProperty__(ctx, name) : false;
}