Fix jobqueue's return value handling in jerry-main's repl mode (#1807)

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss 2017-05-09 05:40:53 +02:00 committed by yichoi
parent 7f32abf75c
commit 68f9585b96

View File

@ -821,9 +821,9 @@ main (int argc,
jerry_release_value (ret_val_eval);
ret_val_eval = jerry_port_default_jobqueue_run ();
if (jerry_value_has_error_flag (ret_value))
if (jerry_value_has_error_flag (ret_val_eval))
{
print_unhandled_exception (ret_value);
print_unhandled_exception (ret_val_eval);
}
#endif /* !CONFIG_DISABLE_ES2015_PROMISE_BUILTIN */
}