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
@@ -79,7 +79,7 @@ jerryx_arg_transform_number_common (jerryx_arg_js_iterator_t *js_arg_iter_p, /**
|
||||
|
||||
jerry_value_t to_number = jerry_value_to_number (js_arg);
|
||||
|
||||
if (jerry_value_has_error_flag (to_number))
|
||||
if (jerry_value_is_error (to_number))
|
||||
{
|
||||
jerry_release_value (to_number);
|
||||
|
||||
@@ -177,14 +177,14 @@ jerryx_arg_helper_process_double (double *d, /**< [in, out] the number to be pro
|
||||
{ \
|
||||
double tmp = 0.0; \
|
||||
jerry_value_t rv = jerryx_arg_transform_number ## suffix ## _common (js_arg_iter_p, &tmp); \
|
||||
if (jerry_value_has_error_flag (rv)) \
|
||||
if (jerry_value_is_error (rv)) \
|
||||
{ \
|
||||
return rv; \
|
||||
} \
|
||||
jerry_release_value (rv); \
|
||||
jerryx_arg_int_option_t *options_p = (jerryx_arg_int_option_t *) &c_arg_p->extra_info; \
|
||||
rv = jerryx_arg_helper_process_double (&tmp, min, max, *options_p); \
|
||||
if (jerry_value_has_error_flag (rv)) \
|
||||
if (jerry_value_is_error (rv)) \
|
||||
{ \
|
||||
return rv; \
|
||||
} \
|
||||
@@ -329,7 +329,7 @@ jerryx_arg_transform_string_common (jerryx_arg_js_iterator_t *js_arg_iter_p, /**
|
||||
|
||||
jerry_value_t to_string = jerry_value_to_string (js_arg);
|
||||
|
||||
if (jerry_value_has_error_flag (to_string))
|
||||
if (jerry_value_is_error (to_string))
|
||||
{
|
||||
jerry_release_value (to_string);
|
||||
|
||||
|
||||
+4
-4
@@ -47,7 +47,7 @@ jerryx_arg_transform_args (const jerry_value_t *js_arg_p, /**< points to the arr
|
||||
.js_arg_idx = 0
|
||||
};
|
||||
|
||||
for (; c_arg_cnt != 0 && !jerry_value_has_error_flag (ret); c_arg_cnt--, c_arg_p++)
|
||||
for (; c_arg_cnt != 0 && !jerry_value_is_error (ret); c_arg_cnt--, c_arg_p++)
|
||||
{
|
||||
ret = c_arg_p->func (&iterator, c_arg_p);
|
||||
}
|
||||
@@ -86,7 +86,7 @@ jerryx_arg_transform_this_and_args (const jerry_value_t this_val, /**< the this_
|
||||
|
||||
jerry_value_t ret = c_arg_p->func (&iterator, c_arg_p);
|
||||
|
||||
if (jerry_value_has_error_flag (ret))
|
||||
if (jerry_value_is_error (ret))
|
||||
{
|
||||
jerry_release_value (ret);
|
||||
|
||||
@@ -123,7 +123,7 @@ jerryx_arg_transform_object_properties (const jerry_value_t obj_val,/**< the JS
|
||||
prop[i] = jerry_get_property (obj_val, name_str);
|
||||
jerry_release_value (name_str);
|
||||
|
||||
if (jerry_value_has_error_flag (prop[i]))
|
||||
if (jerry_value_is_error (prop[i]))
|
||||
{
|
||||
for (jerry_length_t j = 0; j < i; j++)
|
||||
{
|
||||
@@ -166,7 +166,7 @@ jerryx_arg_transform_array (const jerry_value_t array_val, /**< points to the JS
|
||||
{
|
||||
arr[i] = jerry_get_property_by_index (array_val, i);
|
||||
|
||||
if (jerry_value_has_error_flag (arr[i]))
|
||||
if (jerry_value_is_error (arr[i]))
|
||||
{
|
||||
for (jerry_length_t j = 0; j < i; j++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user