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
@@ -320,7 +320,7 @@ process_generate (cli_state_t *cli_state_p, /**< cli state */
|
||||
{
|
||||
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Error: Generating snapshot failed!\n");
|
||||
|
||||
jerry_value_clear_error_flag (&snapshot_result);
|
||||
snapshot_result = jerry_get_value_from_error (snapshot_result, true);
|
||||
|
||||
print_unhandled_exception (snapshot_result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user