aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmljs_runtime.cpp')
-rw-r--r--qmljs_runtime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp
index 44226fb593..407348fe6a 100644
--- a/qmljs_runtime.cpp
+++ b/qmljs_runtime.cpp
@@ -197,7 +197,7 @@ Value __qmljs_delete_member(ExecutionContext *ctx, Value base, String *name)
Value __qmljs_delete_property(ExecutionContext *ctx, String *name)
{
- Object *obj = ctx->activation;
+ Object *obj = ctx->lexicalEnvironment->activation;
if (!obj)
obj = ctx->engine->globalObject.objectValue();
return Value::fromBoolean(obj->__delete__(ctx, name, true));
@@ -779,7 +779,7 @@ Value __qmljs_call_property(ExecutionContext *context, Value base, String *name,
Value thisObject;
if (base.isUndefined()) {
- baseObject = context->activation;
+ baseObject = context->lexicalEnvironment->activation;
thisObject = Value::nullValue();
} else {
if (!base.isObject())