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:
kisbg
2021-04-07 12:46:12 +02:00
committed by GitHub
parent d85020f709
commit 2381078e80
26 changed files with 415 additions and 229 deletions
+1 -1
View File
@@ -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:
{