Restore "Fix preparsing of variable declaration lists, which are not divided by a semicolon." 06d0c1806d) that was incorrectly removed in abc2b55297.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-07-15 18:24:51 +03:00
committed by Ruben Ayrapetyan
parent abc2b55297
commit 4fdb5249b9
+4
View File
@@ -3050,6 +3050,10 @@ preparse_scope (bool is_global)
}
else if (token_is (TOK_KEYWORD))
{
if (is_keyword (KW_VAR))
{
is_in_var_declaration_list = false;
}
break;
}
else if (token_is (TOK_CLOSE_BRACE))