diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-12 08:22:06 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-12 09:07:35 +0100 |
commit | 834d0b72dcb4f785699d2b9b476bc9a78f5574fb (patch) | |
tree | e4e274c93fadd59cb87faa6ecf089d67d3646891 /qmljs_environment.cpp | |
parent | 5e39d56c0974faa28c5060a12064e1ad7f611ea0 (diff) |
Don't allow this as LHS operand
Change-Id: I18a16721312b07485d0671bf072da27dc97490a8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
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); } |