Skip to content

Commit 51da155

Browse files
author
Robert Fancsik
authored
Build fix after #4811 (#4845)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
1 parent bfc1121 commit 51da155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jerry-core/ecma/builtin-objects/ecma-builtin-async-generator-prototype.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ ecma_builtin_async_generator_prototype_dispatch_routine (uint8_t builtin_routine
111111

112112
if (executable_object_p == NULL)
113113
{
114-
const lit_utf8_byte_t *msg_p = ecma_get_error_utf8 (ECMA_ERR_ARGUMENT_THIS_NOT_ASYNC_GENERATOR);
114+
const char *msg_p = ecma_get_error_msg (ECMA_ERR_ARGUMENT_THIS_NOT_ASYNC_GENERATOR);
115115
lit_utf8_size_t msg_size = ecma_get_error_size (ECMA_ERR_ARGUMENT_THIS_NOT_ASYNC_GENERATOR);
116-
ecma_string_t *error_msg_p = ecma_new_ecma_string_from_ascii (msg_p, msg_size);
116+
ecma_string_t *error_msg_p = ecma_new_ecma_string_from_ascii ((const lit_utf8_byte_t *) msg_p, msg_size);
117117

118118
ecma_object_t *type_error_obj_p = ecma_new_standard_error (JERRY_ERROR_TYPE, error_msg_p);
119119
ecma_deref_ecma_string (error_msg_p);

0 commit comments

Comments
 (0)