aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_objects.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-25 00:26:28 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-25 10:21:12 +0100
commit15326415d127e17016b60820b85c85016c3682e6 (patch)
tree4bc0df4dee49d6649c164cca56b547598b8969f2 /qmljs_objects.h
parent87b31798170233b92f13ba4d39e0278fdf61e10e (diff)
Fix some issues with the delete operator
Properly implement delete operator for identifiers and local variables. Change-Id: I8ac55edc80c31a94d11444c9f5c78caf4b131c95 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r--qmljs_objects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h
index 31d493a790..b54e6062d1 100644
--- a/qmljs_objects.h
+++ b/qmljs_objects.h
@@ -411,7 +411,7 @@ struct Object {
virtual void __put__(ExecutionContext *ctx, String *name, const Value &value, bool throwException = false);
virtual bool __canPut__(ExecutionContext *ctx, String *name);
virtual bool __hasProperty__(ExecutionContext *ctx, String *name) const;
- virtual bool __delete__(ExecutionContext *ctx, String *name, bool throwException);
+ virtual bool __delete__(ExecutionContext *ctx, String *name, bool throwException = false);
virtual bool __defineOwnProperty__(ExecutionContext *ctx, String *name, PropertyDescriptor *desc, bool throwException = false);
//