aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-27 23:23:04 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2012-11-28 09:59:26 +0100
commit94a344c01a62fe32ffbc0f04cefe8daabcfab7a1 (patch)
tree05723dea214166b03f137bfeb5bb9cfca02e29a9 /qmljs_runtime.cpp
parent1dbad2e68953f9e2d30bce44b3d02dd65c273c9a (diff)
Obey strict mode for property getters and setters
Change-Id: I6f51cd72c2607989c55373dfee53130381f5ef75 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_runtime.cpp')
-rw-r--r--qmljs_runtime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp
index 7182ad07c1..a6fd7862bf 100644
--- a/qmljs_runtime.cpp
+++ b/qmljs_runtime.cpp
@@ -192,7 +192,7 @@ Value __qmljs_delete_subscript(ExecutionContext *ctx, Value base, Value index)
Value __qmljs_delete_member(ExecutionContext *ctx, Value base, String *name)
{
Value obj = base.toObject(ctx);
- return Value::fromBoolean(obj.objectValue()->__delete__(ctx, name, true));
+ return Value::fromBoolean(obj.objectValue()->__delete__(ctx, name));
}
Value __qmljs_delete_name(ExecutionContext *ctx, String *name)
@@ -543,7 +543,7 @@ Value __qmljs_new_string_object(ExecutionContext *ctx, String *string)
void __qmljs_set_property(ExecutionContext *ctx, Value object, String *name, Value value)
{
- object.objectValue()->__put__(ctx, name, value, /*flags*/ 0);
+ object.objectValue()->__put__(ctx, name, value);
}
Value __qmljs_get_element(ExecutionContext *ctx, Value object, Value index)
@@ -583,7 +583,7 @@ void __qmljs_set_element(ExecutionContext *ctx, Value object, Value index, Value
if (! object.isObject())
object = __qmljs_to_object(object, ctx);
- object.objectValue()->__put__(ctx, name, value, /*flags*/ 0);
+ object.objectValue()->__put__(ctx, name, value);
}
Value __qmljs_foreach_iterator_object(Value in, ExecutionContext *ctx)