diff options
Diffstat (limited to 'qmljs_environment.cpp')
-rw-r--r-- | qmljs_environment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp index 9f900f9e94..caf891566d 100644 --- a/qmljs_environment.cpp +++ b/qmljs_environment.cpp @@ -260,7 +260,7 @@ void ExecutionContext::setProperty(String *name, Value value) if (ctx->setMutableBinding(this, name, value)) return; } - if (strictMode) + if (strictMode || name == engine->id_this) throwReferenceError(Value::fromString(name)); engine->globalObject.objectValue()->__put__(this, name, value); } |