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 [email protected]
This commit is contained in:
1 parent
d672d1e71c
commit
ba2e49caaa
42 files changed
+271
-273
No files matched your search
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_FUNCTION(setInterval) {
|
||||
|
||||
jerry_value_t result = jerry_set_property_by_index(function_obj_p, id, args[0]);
|
||||
|
||||
if (jerry_value_has_error_flag(result)) {
|
||||
if (jerry_value_is_error(result)) {
|
||||
jerry_release_value(result);
|
||||
mbed::js::EventLoop::getInstance().getQueue().cancel(id);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_FUNCTION(setTimeout) {
|
||||
|
||||
jerry_value_t result = jerry_set_property_by_index(function_obj_p, id, args[0]);
|
||||
|
||||
if (jerry_value_has_error_flag(result)) {
|
||||
if (jerry_value_is_error(result)) {
|
||||
jerry_release_value(result);
|
||||
mbed::js::EventLoop::getInstance().getQueue().cancel(id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user