Skip to content

Commit 4b9d0eb

Browse files
crysehillmessaghul
authored andcommitted
Expose JS_IsUncatchableError API.
Very useful when handling errors.
1 parent 6198fdf commit 4b9d0eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickjs.h

+1
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ JS_EXTERN JSValue JS_Throw(JSContext *ctx, JSValue obj);
618618
JS_EXTERN JSValue JS_GetException(JSContext *ctx);
619619
JS_BOOL JS_HasException(JSContext *ctx);
620620
JS_EXTERN JS_BOOL JS_IsError(JSContext *ctx, JSValue val);
621+
JS_EXTERN JS_BOOL JS_IsUncatchableError(JSContext* ctx, JSValue val);
621622
JS_EXTERN void JS_ResetUncatchableError(JSContext *ctx);
622623
JS_EXTERN JSValue JS_NewError(JSContext *ctx);
623624
JS_EXTERN JSValue __js_printf_like(2, 3) JS_ThrowPlainError(JSContext *ctx, const char *fmt, ...);

0 commit comments

Comments
 (0)