aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-13 12:11:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-13 12:38:26 +0100
commit1db8ff269d7965ec514d7e2f35940b4d758a6987 (patch)
treeae8820e5b4fb2f406a3d08a4c6311565a0ab627f
parent9edd6967753c16512c8c589f3dedcae02687070a (diff)
Don't reset the function pointer in leaveCallContext()
We need the function pointer to be able to map variable names correctly. Fixes the remaining problems with nested functions and closures. Change-Id: I976be2df57b93edb3b762afc33790c4483430b05 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r--qmljs_environment.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp
index e785d89a3d..c4177ad26e 100644
--- a/qmljs_environment.cpp
+++ b/qmljs_environment.cpp
@@ -432,7 +432,6 @@ void ExecutionContext::leaveCallContext()
}
engine->current = parent;
parent = 0;
- function = 0;
if (engine->debugger)
engine->debugger->justLeft(this);