diff options
author | Kasper Isager Dalsgarð <kasperisager@hey.com> | 2024-05-09 12:45:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 12:45:47 +0200 |
commit | 6f9d05fd2b9de2f132b22518dabf201cea1c4fba (patch) | |
tree | 92151bb40855493bd58c881459e269d5ad3bfe1f /quickjs.h | |
parent | d53aafe0f30f8aee36fb600d8f578baef1a49a72 (diff) | |
download | quickjs-6f9d05fd2b9de2f132b22518dabf201cea1c4fba.tar.gz quickjs-6f9d05fd2b9de2f132b22518dabf201cea1c4fba.zip |
Expose `JS_SetUncatchableError()` (#262)
* Expose `JS_SetUncatchableError()`
* Remove unnecessary `JS_SetUncatchableError` declaration
Diffstat (limited to 'quickjs.h')
-rw-r--r-- | quickjs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -635,6 +635,7 @@ JSValue JS_Throw(JSContext *ctx, JSValue obj); 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, ...); |