Refactor ecma_op_to_string (#3171)
Similar to the ecma_op_to_object rework, in this new method we return directly with the pointer to the ecma string, and we don't wrap the result into an ecma_value_t JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
committed by
Robert Fancsik
parent
b7aa21ebc7
commit
4b352758c1
@@ -302,8 +302,8 @@ ecma_raise_standard_error_with_format (ecma_standard_error_t error_type, /**< er
|
||||
#endif /* ENABLED (JERRY_ES2015) */
|
||||
else
|
||||
{
|
||||
ecma_value_t str_val = ecma_op_to_string (arg_val);
|
||||
arg_string_p = ecma_get_string_from_value (str_val);
|
||||
arg_string_p = ecma_op_to_string (arg_val);
|
||||
JERRY_ASSERT (arg_string_p != NULL);
|
||||
}
|
||||
|
||||
/* Concat argument. */
|
||||
|
||||
Reference in New Issue
Block a user