diff options
author | Csaba Repasi <repasics@inf.u-szeged.hu> | 2021-11-26 10:26:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 10:26:46 +0100 |
commit | 841e21a970abf803c0234dcf6388f5831afee321 (patch) | |
tree | 0c041a26442400250dfa36095c9a376f51549667 /jerry-core/parser/js/js-parser-internal.h | |
parent | 271d9b2463704fb1ebfa47fd73ecffe7c83d76e0 (diff) |
Generate parser error messages (#4836)
Support parser error messages generation in tools/gen-strings.py.
JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi repasics@inf.u-szeged.hu
Diffstat (limited to 'jerry-core/parser/js/js-parser-internal.h')
-rw-r--r-- | jerry-core/parser/js/js-parser-internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jerry-core/parser/js/js-parser-internal.h b/jerry-core/parser/js/js-parser-internal.h index b8a3e7e0..0ce1b49c 100644 --- a/jerry-core/parser/js/js-parser-internal.h +++ b/jerry-core/parser/js/js-parser-internal.h @@ -25,6 +25,7 @@ #include "js-parser-limits.h" #include "js-parser.h" #include "js-scanner.h" +#include "parser-errors.h" /** \addtogroup parser Parser * @{ @@ -533,7 +534,7 @@ typedef struct parser_saved_context_t typedef struct { PARSER_TRY_CONTEXT (try_buffer); /**< try_buffer */ - parser_error_t error; /**< error code */ + parser_error_msg_t error; /**< error code */ /** Union for rarely used members. */ union { @@ -923,7 +924,7 @@ uint16_t parser_check_anonymous_function_declaration (parser_context_t *context_ /* Error management. */ -void parser_raise_error (parser_context_t *context_p, parser_error_t error); +void parser_raise_error (parser_context_t *context_p, parser_error_msg_t error); /* Debug functions. */ |