From 45dc9011984ca10e873d841be39a2fcf2c8bce24 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 13 Dec 2012 01:39:36 +0100 Subject: [PATCH] Fix delete expression. Change-Id: Ifc0918272c615889aee4ae63435071a72aad7119 Reviewed-by: Simon Hausmann --- qmljs_environment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp index 2a49a67..e785d89 100644 --- a/qmljs_environment.cpp +++ b/qmljs_environment.cpp @@ -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) -- 2.7.4