Fix concatenating of surrogates.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-07-09 18:27:23 +03:00
committed by Evgeny Gavrin
parent 9fc1958903
commit dbf3708255
4 changed files with 104 additions and 11 deletions
+6
View File
@@ -830,6 +830,12 @@ typedef struct ecma_string_t
{
mem_cpointer_t string1_cp : ECMA_POINTER_FIELD_WIDTH;
mem_cpointer_t string2_cp : ECMA_POINTER_FIELD_WIDTH;
/**
* Flag indicating that last code_unit of first string in concatenation is high surrogate
* and first code_unit of second string is low surrogate
*/
unsigned int is_surrogate_pair_sliced : 1;
} concatenation;
/** Identifier of magic string */