aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-29 22:37:25 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2012-11-30 12:28:38 +0100
commitf26d5c36cff33cc8a968c87a69e9dddbb4278855 (patch)
tree185ef14f30ed409cb74ff8cf11ad8223597cb5ad /qmljs_engine.cpp
parentf00cf7cfae716f5e5af2d0952c3a822744977811 (diff)
Get rid of variableEnvironment
Found out that the variableEnv is only required for two use cases: To expose the exception in the catch statement, and to create temporary environments for the with() statment. Both can be better handled differently and don't require the overhead of two environments. Change-Id: I149e1fd7bdfc3267544b141b6f94e46e42cf641b Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qmljs_engine.cpp')
-rw-r--r--qmljs_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_engine.cpp b/qmljs_engine.cpp
index 1609559659..4ccbe4ea84 100644
--- a/qmljs_engine.cpp
+++ b/qmljs_engine.cpp
@@ -158,7 +158,7 @@ ExecutionEngine::ExecutionEngine(EvalISelFactory *factory)
//
VM::Object *glo = newObject(/*rootContext*/);
globalObject = Value::fromObject(glo);
- rootContext->variableEnvironment->activation = glo;
+ rootContext->lexicalEnvironment->activation = glo;
glo->__put__(rootContext, identifier(QStringLiteral("Object")), objectCtor);
glo->__put__(rootContext, identifier(QStringLiteral("String")), stringCtor);