Fix invalid preparsing of variable declarations which are not splitted by comma.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
@@ -3026,6 +3026,12 @@ preparse_scope (bool is_global)
|
||||
}
|
||||
|
||||
skip_newlines ();
|
||||
|
||||
if (!token_is (TOK_COMMA)
|
||||
&& !token_is (TOK_EQ))
|
||||
{
|
||||
is_in_var_declaration_list = false;
|
||||
}
|
||||
}
|
||||
else if (is_in_var_declaration_list)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user