Skip to content

Fix parameter constness differences in function declarations and definitions #2337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ecma_builtin_array_prototype_object_to_string (ecma_value_t this_arg) /**< this
* Returned value must be freed with ecma_free_value.
*/
static ecma_value_t
ecma_builtin_array_prototype_object_to_locale_string (const ecma_value_t this_arg) /**< this argument */
ecma_builtin_array_prototype_object_to_locale_string (ecma_value_t this_arg) /**< this argument */
{
ecma_value_t ret_value = ECMA_VALUE_EMPTY;

Expand Down Expand Up @@ -331,8 +331,8 @@ ecma_op_array_get_to_string_at_index (ecma_object_t *obj_p, /**< this object */
* Returned value must be freed with ecma_free_value.
*/
static ecma_value_t
ecma_builtin_array_prototype_join (const ecma_value_t this_arg, /**< this argument */
const ecma_value_t separator_arg) /**< separator argument */
ecma_builtin_array_prototype_join (ecma_value_t this_arg, /**< this argument */
ecma_value_t separator_arg) /**< separator argument */
{
ecma_value_t ret_value = ECMA_VALUE_EMPTY;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,8 @@ ecma_op_typedarray_get_separator_string (ecma_value_t separator) /**< possible s
* Returned value must be freed with ecma_free_value.
*/
static ecma_value_t
ecma_builtin_typedarray_prototype_join (const ecma_value_t this_arg, /**< this argument */
const ecma_value_t separator_arg) /**< separator argument */
ecma_builtin_typedarray_prototype_join (ecma_value_t this_arg, /**< this argument */
ecma_value_t separator_arg) /**< separator argument */
{
/* 1. */
ecma_value_t obj_value = ecma_op_to_object (this_arg);
Expand Down
2 changes: 1 addition & 1 deletion jerry-core/lit/lit-strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ lit_string_hash_t lit_utf8_string_hash_combine (lit_string_hash_t hash_basis, co
/* code unit access */
ecma_char_t lit_utf8_string_code_unit_at (const lit_utf8_byte_t *utf8_buf_p, lit_utf8_size_t utf8_buf_size,
ecma_length_t code_unit_offset);
lit_utf8_size_t lit_get_unicode_char_size_by_utf8_first_byte (lit_utf8_byte_t first_byte);
lit_utf8_size_t lit_get_unicode_char_size_by_utf8_first_byte (const lit_utf8_byte_t first_byte);

/* conversion */
lit_utf8_size_t lit_code_unit_to_utf8 (ecma_char_t code_unit, lit_utf8_byte_t *buf_p);
Expand Down