Add support for aborts. (#2176)
Aborts are similar to exceptions except they are not caught by catch and finally blocks. Callbacks should honor aborts as well and return them without processing them. Aborts are never thrown by JavaScript code. In the future certain events such as out-of-memory condition may also throw aborts. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -293,8 +293,10 @@ bool jerry_is_feature_enabled (const jerry_feature_t feature);
|
||||
* Error flag manipulation functions.
|
||||
*/
|
||||
bool jerry_value_has_error_flag (const jerry_value_t value);
|
||||
bool jerry_value_has_abort_flag (const jerry_value_t value);
|
||||
void jerry_value_clear_error_flag (jerry_value_t *value_p);
|
||||
void jerry_value_set_error_flag (jerry_value_t *value_p);
|
||||
void jerry_value_set_abort_flag (jerry_value_t *value_p);
|
||||
jerry_value_t jerry_get_value_without_error_flag (jerry_value_t value);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user