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:
Istvan Miklos
2018-05-25 11:40:35 +02:00
committed by Zoltan Herczeg
parent 4779451284
commit ac9fce1d8d
13 changed files with 91 additions and 99 deletions
+1 -1
View File
@@ -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);