Make sure we compare identifiers
authorLars Knoll <lars.knoll@digia.com>
Wed, 30 Jan 2013 14:39:08 +0000 (15:39 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 30 Jan 2013 16:33:05 +0000 (17:33 +0100)
Change-Id: I1fc63a062799857ccd937c194e7f305b31ca3567
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qmljs_environment.cpp

index 9042a43..67f5994 100644 (file)
@@ -316,6 +316,8 @@ void ExecutionContext::setProperty(String *name, Value value)
 
 Value ExecutionContext::getProperty(String *name)
 {
+    name->makeIdentifier(this);
+
     if (name->isEqualTo(engine->id_this))
         return thisObject;
 
@@ -357,6 +359,8 @@ Value ExecutionContext::getProperty(String *name)
 
 Value ExecutionContext::getPropertyNoThrow(String *name)
 {
+    name->makeIdentifier(this);
+
     if (name->isEqualTo(engine->id_this))
         return thisObject;
 
@@ -394,6 +398,7 @@ Value ExecutionContext::getPropertyNoThrow(String *name)
 Value ExecutionContext::getPropertyAndBase(String *name, Object **base)
 {
     *base = 0;
+    name->makeIdentifier(this);
 
     if (name->isEqualTo(engine->id_this))
         return thisObject;