mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
7f32abf75c
commit
68f9585b96
@ -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 */
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user