diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-28 00:12:33 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-28 10:00:02 +0100 |
commit | 61460c785907049567120e07dcadd714fff93cdb (patch) | |
tree | fe741c6237fb82892c5c0a340f4a564e6d4c9263 /qmljs_objects.h | |
parent | 94a344c01a62fe32ffbc0f04cefe8daabcfab7a1 (diff) |
Fix a bug in Object::__put__()
The method was always throwing in strict mode, due to
a missing return statement.
Change-Id: I85e44f8067d1f2aea76d03e42abf31a0d5a2d180
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r-- | qmljs_objects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h index 45e301c56e..25790f457e 100644 --- a/qmljs_objects.h +++ b/qmljs_objects.h @@ -408,7 +408,7 @@ struct Object { virtual Value __get__(ExecutionContext *ctx, String *name); virtual PropertyDescriptor *__getOwnProperty__(ExecutionContext *ctx, String *name); virtual PropertyDescriptor *__getPropertyDescriptor__(ExecutionContext *ctx, String *name, PropertyDescriptor *to_fill); - virtual void __put__(ExecutionContext *ctx, String *name, const Value &value); + virtual void __put__(ExecutionContext *ctx, String *name, Value value); virtual bool __canPut__(ExecutionContext *ctx, String *name); virtual bool __hasProperty__(ExecutionContext *ctx, String *name) const; virtual bool __delete__(ExecutionContext *ctx, String *name); |