Fix delete expression.
authorLars Knoll <lars.knoll@digia.com>
Thu, 13 Dec 2012 00:39:36 +0000 (01:39 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Dec 2012 23:03:11 +0000 (00:03 +0100)
Change-Id: Ifc0918272c615889aee4ae63435071a72aad7119
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_environment.cpp

index 2a49a67..e785d89 100644 (file)
@@ -230,13 +230,13 @@ bool ExecutionContext::deleteProperty(String *name)
             ExecutionContext::With *w = ctx->withObject;
             while (w) {
                 if (w->object->__hasProperty__(this, name))
-                    w->object->__delete__(this, name);
+                    return w->object->__delete__(this, name);
                 w = w->next;
             }
         }
         if (ctx->activation) {
             if (ctx->activation->__hasProperty__(this, name))
-                ctx->activation->__delete__(this, name);
+                return ctx->activation->__delete__(this, name);
         }
     }
     if (strictMode)