mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fix calculation of concatenation hash.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
parent
a00079e8ff
commit
6ee561e821
@ -650,7 +650,7 @@ ecma_concat_ecma_strings (ecma_string_t *string1_p, /**< first ecma-string */
|
||||
{
|
||||
lit_utf8_size_t buffer_size = ecma_string_get_size (string2_p);
|
||||
MEM_DEFINE_LOCAL_ARRAY (utf8_str_p, buffer_size, lit_utf8_byte_t);
|
||||
ecma_string_to_utf8_string (string_desc_p, utf8_str_p, (ssize_t) buffer_size);
|
||||
ecma_string_to_utf8_string (string2_p, utf8_str_p, (ssize_t) buffer_size);
|
||||
string_desc_p->hash = lit_utf8_string_hash_combine (string1_p->hash, utf8_str_p, buffer_size);
|
||||
MEM_FINALIZE_LOCAL_ARRAY (utf8_str_p);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user