Introducing ECMA_FUNCTION_CALL helper macro for handling return completion values of function calls.

This commit is contained in:
Ruben Ayrapetyan
2014-08-22 20:26:23 +04:00
parent 80e6cd3a60
commit 6801f22bd9
4 changed files with 51 additions and 6 deletions
+3 -1
View File
@@ -424,7 +424,9 @@ ecma_op_function_call (ecma_object_t *func_obj_p, /**< Function object */
{
JERRY_ASSERT(ecma_is_empty_completion_value (completion));
ret_value = ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_UNDEFINED);
ret_value = ecma_make_completion_value (ECMA_COMPLETION_TYPE_RETURN,
ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED),
ECMA_TARGET_ID_RESERVED);
}
else
{