JavaScript parser: fix scope of functions nested inside methods
This commit is contained in:
parent
4dafe0d8d3
commit
2109677781
@ -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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user