From 4fdb5249b99122a074f5b6adb13fcfdccf722ad6 Mon Sep 17 00:00:00 2001 From: Andrey Shitov Date: Wed, 15 Jul 2015 18:24:51 +0300 Subject: [PATCH] Restore "Fix preparsing of variable declaration lists, which are not divided by a semicolon." 06d0c1806d7ceff5192feee996c770b42bc1e1e9) that was incorrectly removed in abc2b55297eff13538fca2440d127ba79cdcc8b3. JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com --- jerry-core/parser/js/parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jerry-core/parser/js/parser.cpp b/jerry-core/parser/js/parser.cpp index 09a29b47f..082d8d6cb 100644 --- a/jerry-core/parser/js/parser.cpp +++ b/jerry-core/parser/js/parser.cpp @@ -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))