Add constant error messages (#4640)
added two new file ecma-errors.h and ecma-erros.c it contains the most used errors messages. JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
@@ -1278,7 +1278,7 @@ parser_error_to_string (parser_error_t error) /**< error code */
|
||||
#if JERRY_ESNEXT
|
||||
case PARSER_ERR_VARIABLE_REDECLARED:
|
||||
{
|
||||
return "Local variable is redeclared";
|
||||
return ecma_error_local_variable_is_redeclared;
|
||||
}
|
||||
case PARSER_ERR_LEXICAL_SINGLE_STATEMENT:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user