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 [email protected]
This commit is contained in:
kisbg authored and GitHub committed 2021-04-07 12:46:12 +02:00
1 parent d85020f709
commit 2381078e80
26 files changed
+415 -229

No files matched your search

+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:
{