diff options
author | Akos Kiss <akiss@inf.u-szeged.hu> | 2017-05-09 05:40:53 +0200 |
---|---|---|
committer | yichoi <duddlf.choi@samsung.com> | 2017-05-09 12:40:53 +0900 |
commit | 68f9585b96c6f79b55a3cb32c531f3cd241fd7e8 (patch) | |
tree | 915ed275e27382940c97974115542605b0d98322 /jerry-main | |
parent | 7f32abf75c25952d203c16ec134f7722940ff5e3 (diff) |
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
Diffstat (limited to 'jerry-main')
-rw-r--r-- | jerry-main/main-unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jerry-main/main-unix.c b/jerry-main/main-unix.c index c22ba7f1..6865fdf6 100644 --- a/jerry-main/main-unix.c +++ b/jerry-main/main-unix.c @@ -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 */ } |