diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-04-26 09:22:17 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-10 15:01:17 +0000 |
commit | 864988474a96145f0506a80aa36c341a9f29e85b (patch) | |
tree | 8f4097dc3a65b85d77660ec2b74d37adc615feab /src/qml/jsruntime/qv4context.cpp | |
parent | 58e712a9dd5d22c0ea90a49ecee85724ecce6ace (diff) |
Move the StringValue members of ExecutionEngine onto the JS stack
Change-Id: Ib55c05f1730b7659e2f6fee7e1fa79c10c759167
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index 0951015dde..63bde5f959 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -328,7 +328,7 @@ void ExecutionContext::setProperty(String *name, const Value &value) } } } - if (d()->strictMode || name->equals(d()->engine->id_this)) { + if (d()->strictMode || name->equals(d()->engine->id_this())) { ScopedValue n(scope, name->asReturnedValue()); engine()->throwReferenceError(n); return; @@ -342,7 +342,7 @@ ReturnedValue ExecutionContext::getProperty(String *name) ScopedValue v(scope); name->makeIdentifier(scope.engine); - if (name->equals(d()->engine->id_this)) + if (name->equals(d()->engine->id_this())) return thisObject().asReturnedValue(); bool hasWith = false; @@ -409,7 +409,7 @@ ReturnedValue ExecutionContext::getPropertyAndBase(String *name, Heap::Object ** *base = (Heap::Object *)0; name->makeIdentifier(scope.engine); - if (name->equals(d()->engine->id_this)) + if (name->equals(d()->engine->id_this())) return thisObject().asReturnedValue(); bool hasWith = false; |