Skip to content

Commit

Permalink
Expose JS_IsUncatchableError API.
Browse files Browse the repository at this point in the history
Very useful when handling errors.
  • Loading branch information
crysehillmes committed Dec 10, 2024
1 parent 53b641d commit ed2f581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quickjs.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ JS_EXTERN JSValue JS_Throw(JSContext *ctx, JSValue obj);
JS_EXTERN JSValue JS_GetException(JSContext *ctx);
JS_BOOL JS_HasException(JSContext *ctx);
JS_EXTERN JS_BOOL JS_IsError(JSContext *ctx, JSValue val);
JS_EXTERN JS_BOOL JS_IsUncatchableError(JSContext* ctx, JSValue val);
JS_EXTERN void JS_ResetUncatchableError(JSContext *ctx);
JS_EXTERN JSValue JS_NewError(JSContext *ctx);
JS_EXTERN JSValue __js_printf_like(2, 3) JS_ThrowPlainError(JSContext *ctx, const char *fmt, ...);
Expand Down

0 comments on commit ed2f581

Please sign in to comment.