JavaScript parser: fix scope of functions nested inside methods

This commit is contained in:
Colomban Wendling 2012-10-28 18:55:48 +01:00
parent 4dafe0d8d3
commit 2109677781

View File

@ -1243,6 +1243,7 @@ static boolean parseStatement (tokenInfo *const token, boolean is_inside_class)
makeJsTag (token, JSTAG_METHOD);
readToken (method_body_token);
vStringCopy (method_body_token->scope, token->scope);
while (! ( isType (method_body_token, TOKEN_SEMICOLON) ||
isType (method_body_token, TOKEN_CLOSE_CURLY) ||