diff --git a/jerry-core/ecma/operations/ecma-array-object.cpp b/jerry-core/ecma/operations/ecma-array-object.cpp index 135a7564c..f36fd99f1 100644 --- a/jerry-core/ecma/operations/ecma-array-object.cpp +++ b/jerry-core/ecma/operations/ecma-array-object.cpp @@ -32,25 +32,6 @@ * @{ */ -/** - * Reject sequence - * - * @return completion value - * Returned value must be freed with ecma_free_completion_value - */ -static ecma_completion_value_t -ecma_reject (bool is_throw) /**< Throw flag */ -{ - if (is_throw) - { - return ecma_make_throw_obj_completion_value (ecma_new_standard_error (ECMA_ERROR_TYPE)); - } - else - { - return ecma_make_simple_completion_value (ECMA_SIMPLE_VALUE_FALSE); - } -} /* ecma_reject */ - /** * Array object creation operation. * diff --git a/jerry-core/ecma/operations/ecma-objects-general.cpp b/jerry-core/ecma/operations/ecma-objects-general.cpp index ba06c3633..c007e0237 100644 --- a/jerry-core/ecma/operations/ecma-objects-general.cpp +++ b/jerry-core/ecma/operations/ecma-objects-general.cpp @@ -37,7 +37,7 @@ * @return completion value * Returned value must be freed with ecma_free_completion_value */ -static ecma_completion_value_t +ecma_completion_value_t ecma_reject (bool is_throw) /**< Throw flag */ { if (is_throw) diff --git a/jerry-core/ecma/operations/ecma-objects-general.h b/jerry-core/ecma/operations/ecma-objects-general.h index f15d5e047..aeea99408 100644 --- a/jerry-core/ecma/operations/ecma-objects-general.h +++ b/jerry-core/ecma/operations/ecma-objects-general.h @@ -26,6 +26,7 @@ * @{ */ +extern ecma_completion_value_t ecma_reject (bool); extern ecma_object_t *ecma_op_create_object_object_noarg (void); extern ecma_completion_value_t ecma_op_create_object_object_arg (ecma_value_t); extern ecma_object_t *ecma_op_create_object_object_noarg_and_set_prototype (ecma_object_t *);