Fix lookups in catch scopes
authorLars Knoll <lars.knoll@digia.com>
Wed, 13 Feb 2013 11:44:37 +0000 (12:44 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 13 Feb 2013 11:43:00 +0000 (12:43 +0100)
Change-Id: I6fa7546bb7c8d5bc1b52de8adb5c5cc8cb97c9ad
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qmljs_environment.cpp

index 40b8938..0aee96e 100644 (file)
@@ -267,6 +267,7 @@ void ExecutionContext::initForCatch(ExecutionContext *p, String *exceptionVarNam
     thisObject = p->thisObject;
 
     function = 0;
+    lookups = parent->lookups;
     arguments = 0;
     argumentCount = 0;
     locals = 0;