Simplify resource name handling (#3929)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -185,9 +185,13 @@ typedef struct
|
||||
} parser_error_location_t;
|
||||
|
||||
/* Note: source must be a valid UTF-8 string */
|
||||
ecma_value_t parser_parse_script (const uint8_t *arg_list_p, size_t arg_list_size,
|
||||
const uint8_t *source_p, size_t source_size,
|
||||
uint32_t parse_opts, ecma_compiled_code_t **bytecode_data_p);
|
||||
ecma_compiled_code_t *
|
||||
parser_parse_script (const uint8_t *arg_list_p,
|
||||
size_t arg_list_size,
|
||||
const uint8_t *source_p,
|
||||
size_t source_size,
|
||||
ecma_value_t resource_name,
|
||||
uint32_t parse_opts);
|
||||
|
||||
#if ENABLED (JERRY_ERROR_MESSAGES)
|
||||
const char *parser_error_to_string (parser_error_t);
|
||||
|
||||
Reference in New Issue
Block a user