Fix name function expressions
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 8 Feb 2013 12:25:23 +0000 (13:25 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 9 Feb 2013 09:53:50 +0000 (10:53 +0100)
commite7e2aa45689014640a425d60f4be87b211634b97
tree281827974599d3d96c6399a051b8ff2d5c66de13
parent2eca9ab72bcd67c864630723aaaa370a167a951b
Fix name function expressions

We should also insert those into the environment members if they have
a name and are part of an expression statement. Simple testcase
example:

try {
    function foo() { ... }
} catch (e) {}

Then foo should be visible as if it was declared outside of the try.

Change-Id: I8d23a28e1c4537d4f57f9cb0d559e6163e0fdef0
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4codegen.cpp
src/v4/qv4codegen_p.h
tests/TestExpectations