Supporting string concatenations that are longer than 64k.

This commit is contained in:
Ruben Ayrapetyan
2014-09-01 22:11:54 +04:00
parent 813831a23b
commit 4d9602ba0d
3 changed files with 64 additions and 28 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ ecma_op_to_boolean (ecma_value_t value) /**< ecma-value */
{
ecma_string_t *str_p = ECMA_GET_POINTER(value.value);
return ecma_make_simple_completion_value ((str_p->length == 0) ? ECMA_SIMPLE_VALUE_FALSE
return ecma_make_simple_completion_value ((ecma_string_get_length (str_p) == 0) ? ECMA_SIMPLE_VALUE_FALSE
: ECMA_SIMPLE_VALUE_TRUE);
break;