Add stack-overflow check to 'lexer_construct_function_object' (#4965)
This patch fixes #4887. JerryScript-DCO-1.0-Signed-off-by: Martin Negyokru negyokru@inf.u-szeged.hu
This commit is contained in:
@@ -32,7 +32,10 @@ typedef enum
|
||||
/** @endcond */
|
||||
PARSER_ERR_OUT_OF_MEMORY,
|
||||
PARSER_ERR_INVALID_REGEXP,
|
||||
PARSER_ERR_NO_ERROR
|
||||
#if (JERRY_STACK_LIMIT != 0)
|
||||
PARSER_ERR_STACK_OVERFLOW,
|
||||
#endif /* JERRY_STACK_LIMIT != 0 */
|
||||
PARSER_ERR_NO_ERROR,
|
||||
} parser_error_msg_t;
|
||||
|
||||
const lit_utf8_byte_t* parser_get_error_utf8 (uint32_t id);
|
||||
|
||||
Reference in New Issue
Block a user