Pack assert-related code
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -1259,8 +1259,7 @@ ecma_char_t
|
|||||||
ecma_string_get_char_at_pos (const ecma_string_t *string_p, /**< ecma-string */
|
ecma_string_get_char_at_pos (const ecma_string_t *string_p, /**< ecma-string */
|
||||||
ecma_length_t index) /**< index of character */
|
ecma_length_t index) /**< index of character */
|
||||||
{
|
{
|
||||||
ecma_length_t string_length = ecma_string_get_length (string_p);
|
JERRY_ASSERT (index < ecma_string_get_length (string_p));
|
||||||
JERRY_ASSERT (index < string_length);
|
|
||||||
|
|
||||||
lit_utf8_size_t buffer_size;
|
lit_utf8_size_t buffer_size;
|
||||||
bool is_ascii;
|
bool is_ascii;
|
||||||
|
|||||||
Reference in New Issue
Block a user