From 1db8ff269d7965ec514d7e2f35940b4d758a6987 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 13 Dec 2012 12:11:47 +0100 Subject: [PATCH] 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 --- qmljs_environment.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/qmljs_environment.cpp b/qmljs_environment.cpp index e785d89..c4177ad 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); -- 2.7.4