Skip to content

Commit 73a5fd7

Browse files
huxinxruben-ayrapetyan
authored andcommitted
Remove redundant code in lit_charset_literal_get_length
JerryScript-DCO-1.0-Signed-off-by: Xin Hu [email protected]
1 parent ba95cb0 commit 73a5fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-core/lit/lit-literal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ lit_charset_literal_get_length (lit_literal_t lit) /**< literal */
628628
rcs_iterator_skip (&it_ctx, bytes_to_skip);
629629

630630
i += bytes_to_skip;
631-
length += (bytes_to_skip > LIT_UTF8_MAX_BYTES_IN_CODE_UNIT) ? 2 : 1;
631+
length++;
632632
}
633633

634634
#ifndef JERRY_NDEBUG

0 commit comments

Comments
 (0)