Don't reset the function pointer in leaveCallContext()
authorLars Knoll <lars.knoll@digia.com>
Thu, 13 Dec 2012 11:11:47 +0000 (12:11 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 13 Dec 2012 11:38:26 +0000 (12:38 +0100)
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>
qmljs_environment.cpp

index e785d89..c4177ad 100644 (file)
@@ -432,7 +432,6 @@ void ExecutionContext::leaveCallContext()
     }
     engine->current = parent;
     parent = 0;
-    function = 0;
 
     if (engine->debugger)
         engine->debugger->justLeft(this);