From 021a2ff9c94005bfcf7245e330a5d03da4437af9 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 30 Jan 2013 15:39:08 +0100 Subject: [PATCH] Make sure we compare identifiers Change-Id: I1fc63a062799857ccd937c194e7f305b31ca3567 Reviewed-by: Simon Hausmann --- src/v4/qmljs_environment.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/v4/qmljs_environment.cpp b/src/v4/qmljs_environment.cpp index 9042a43..67f5994 100644 --- a/src/v4/qmljs_environment.cpp +++ b/src/v4/qmljs_environment.cpp @@ -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; -- 2.7.4