summaryrefslogtreecommitdiff
path: root/quickjs.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-04-29 18:48:58 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-04-29 18:48:58 +0200
commit53327c2580de657b3d243d9f7de99e6ff2f227b8 (patch)
tree5492bae35fc7668faac2fdd1d837e8874d5ac323 /quickjs.h
parent23e2dc9c399f3a3fc1417cadcf8399066ccf31ce (diff)
downloadquickjs-53327c2580de657b3d243d9f7de99e6ff2f227b8.tar.gz
quickjs-53327c2580de657b3d243d9f7de99e6ff2f227b8.zip
simplified uncatchable exception handling
Diffstat (limited to 'quickjs.h')
-rw-r--r--quickjs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/quickjs.h b/quickjs.h
index 8814222..adc8620 100644
--- a/quickjs.h
+++ b/quickjs.h
@@ -659,11 +659,10 @@ static inline JS_BOOL JS_IsObject(JSValueConst v)
}
JSValue JS_Throw(JSContext *ctx, JSValue obj);
+void JS_SetUncatchableException(JSContext *ctx, JS_BOOL flag);
JSValue JS_GetException(JSContext *ctx);
JS_BOOL JS_HasException(JSContext *ctx);
JS_BOOL JS_IsError(JSContext *ctx, JSValueConst val);
-void JS_SetUncatchableError(JSContext *ctx, JSValueConst val, JS_BOOL flag);
-void JS_ResetUncatchableError(JSContext *ctx);
JSValue JS_NewError(JSContext *ctx);
JSValue __js_printf_like(2, 3) JS_ThrowSyntaxError(JSContext *ctx, const char *fmt, ...);
JSValue __js_printf_like(2, 3) JS_ThrowTypeError(JSContext *ctx, const char *fmt, ...);