Skip to content

Commit fb6259b

Browse files
akosthekissyichoi
authored andcommitted
Fix parameter constness differences in function declarations and definitions (#2337)
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent 0415d74 commit fb6259b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ecma_builtin_array_prototype_object_to_string (ecma_value_t this_arg) /**< this
125125
* Returned value must be freed with ecma_free_value.
126126
*/
127127
static ecma_value_t
128-
ecma_builtin_array_prototype_object_to_locale_string (const ecma_value_t this_arg) /**< this argument */
128+
ecma_builtin_array_prototype_object_to_locale_string (ecma_value_t this_arg) /**< this argument */
129129
{
130130
ecma_value_t ret_value = ECMA_VALUE_EMPTY;
131131

@@ -331,8 +331,8 @@ ecma_op_array_get_to_string_at_index (ecma_object_t *obj_p, /**< this object */
331331
* Returned value must be freed with ecma_free_value.
332332
*/
333333
static ecma_value_t
334-
ecma_builtin_array_prototype_join (const ecma_value_t this_arg, /**< this argument */
335-
const ecma_value_t separator_arg) /**< separator argument */
334+
ecma_builtin_array_prototype_join (ecma_value_t this_arg, /**< this argument */
335+
ecma_value_t separator_arg) /**< separator argument */
336336
{
337337
ecma_value_t ret_value = ECMA_VALUE_EMPTY;
338338

jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ ecma_op_typedarray_get_separator_string (ecma_value_t separator) /**< possible s
837837
* Returned value must be freed with ecma_free_value.
838838
*/
839839
static ecma_value_t
840-
ecma_builtin_typedarray_prototype_join (const ecma_value_t this_arg, /**< this argument */
841-
const ecma_value_t separator_arg) /**< separator argument */
840+
ecma_builtin_typedarray_prototype_join (ecma_value_t this_arg, /**< this argument */
841+
ecma_value_t separator_arg) /**< separator argument */
842842
{
843843
/* 1. */
844844
ecma_value_t obj_value = ecma_op_to_object (this_arg);

jerry-core/lit/lit-strings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ lit_string_hash_t lit_utf8_string_hash_combine (lit_string_hash_t hash_basis, co
108108
/* code unit access */
109109
ecma_char_t lit_utf8_string_code_unit_at (const lit_utf8_byte_t *utf8_buf_p, lit_utf8_size_t utf8_buf_size,
110110
ecma_length_t code_unit_offset);
111-
lit_utf8_size_t lit_get_unicode_char_size_by_utf8_first_byte (lit_utf8_byte_t first_byte);
111+
lit_utf8_size_t lit_get_unicode_char_size_by_utf8_first_byte (const lit_utf8_byte_t first_byte);
112112

113113
/* conversion */
114114
lit_utf8_size_t lit_code_unit_to_utf8 (ecma_char_t code_unit, lit_utf8_byte_t *buf_p);

0 commit comments

Comments
 (0)