Fix ecma_builtin_global_object_decode_uri_helper.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-11-01 17:57:49 +03:00
parent b3c27e5635
commit 8af87206c9
4 changed files with 31 additions and 29 deletions
+2 -2
View File
@@ -475,8 +475,8 @@ lexer_transform_escape_sequences (const jerry_api_char_t *source_str_p, /**< str
converted_char = next_char;
}
if (lit_is_code_unit_high_surrogate (prev_converted_char)
&& lit_is_code_unit_low_surrogate (converted_char))
if (lit_is_code_point_utf16_high_surrogate (prev_converted_char)
&& lit_is_code_point_utf16_low_surrogate (converted_char))
{
output_str_buf_iter_p -= LIT_UTF8_MAX_BYTES_IN_CODE_UNIT;