Rename the jerry_value_has_error_flag function. (#2290)
Rename the function to represent it's real functionality. JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
This commit is contained in:
committed by
László Langó
parent
d672d1e71c
commit
ba2e49caaa
+14
-14
@@ -670,6 +670,20 @@ jerry_value_is_constructor (const jerry_value_t value) /**< jerry api value */
|
||||
return ecma_is_constructor (jerry_get_arg_value (value));
|
||||
} /* jerry_value_is_constructor */
|
||||
|
||||
/**
|
||||
* Check if the specified value is an error or abort value.
|
||||
*
|
||||
* @return true - if the specified value is an error value,
|
||||
* false - otherwise
|
||||
*/
|
||||
bool
|
||||
jerry_value_is_error (const jerry_value_t value) /**< api value */
|
||||
{
|
||||
jerry_assert_api_available ();
|
||||
|
||||
return ecma_is_value_error_reference (value);
|
||||
} /* jerry_value_is_error */
|
||||
|
||||
/**
|
||||
* Check if the specified value is a function object value.
|
||||
*
|
||||
@@ -890,20 +904,6 @@ bool jerry_is_feature_enabled (const jerry_feature_t feature)
|
||||
);
|
||||
} /* jerry_is_feature_enabled */
|
||||
|
||||
/**
|
||||
* Check if the specified value is an error or abort value.
|
||||
*
|
||||
* @return true - if the error flag of the specified value is true,
|
||||
* false - otherwise
|
||||
*/
|
||||
bool
|
||||
jerry_value_has_error_flag (const jerry_value_t value) /**< api value */
|
||||
{
|
||||
jerry_assert_api_available ();
|
||||
|
||||
return ecma_is_value_error_reference (value);
|
||||
} /* jerry_value_has_error_flag */
|
||||
|
||||
/**
|
||||
* Check if the specified value is an abort value.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user