Fix incorrect assertion in parser_parse_for_statement_start (#3679)

This patch fixes #3655.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2020-04-21 12:00:39 +02:00
committed by GitHub
parent 3900152631
commit d1bf9635c7
4 changed files with 36 additions and 1 deletions
+7
View File
@@ -121,6 +121,13 @@ typedef enum
ECMA_PARSE_GENERATOR_FUNCTION = (1u << 8), /**< generator function is parsed */
/* These flags are internally used by the parser. */
#ifndef JERRY_NDEBUG
/**
* This flag represents an error in for in/of statements, which cannot be set
* if the parsing is completed successfully.
*/
ECMA_PARSE_INTERNAL_FOR_IN_OFF_CONTEXT_ERROR = (1u << 9),
#endif /* !JERRY_NDEBUG */
} ecma_parse_opts_t;
/**