Skip to content

Commit

Permalink
QuickJS: fixed exception handling in shell output.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeioex committed Aug 16, 2024
1 parent 43dcb8d commit 4b81888
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion external/njs_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,7 @@ njs_qjs_njs_getter(JSContext *ctx, JSValueConst this_val)


static njs_int_t njs_qjs_global_init(JSContext *ctx, JSValue global_obj);
static void njs_qjs_dump_error(JSContext *ctx);


static void
Expand All @@ -2126,7 +2127,7 @@ njs_qjs_dump_obj(JSContext *ctx, FILE *f, JSValueConst val, const char *prefix,
JS_FreeCString(ctx, str);

} else {
fprintf(f, "%s[exception]\n", prefix);
njs_qjs_dump_error(ctx);
}
}

Expand Down

0 comments on commit 4b81888

Please sign in to comment.