Merge jerry_get_value_without_error and jerry_value_clear_error_flag functions (#2350)
JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu
This commit is contained in:
committed by
Zoltan Herczeg
parent
4779451284
commit
ac9fce1d8d
@@ -60,7 +60,7 @@ static int shell_cmd_handler (char *source_buffer)
|
||||
printf ("Error executing statement: ");
|
||||
/* Clear error flag, otherwise print call below won't produce any
|
||||
output. */
|
||||
jerry_value_clear_error_flag (&ret_val);
|
||||
ret_val = jerry_get_value_from_error (ret_val, true);
|
||||
}
|
||||
|
||||
if (!jerry_value_is_error (print_function))
|
||||
|
||||
Reference in New Issue
Block a user