Add JS_HasException() (#265)

This commit is contained in:
Kasper Isager Dalsgarð
2024-05-08 23:19:15 +02:00
committed by GitHub
parent 6c43013140
commit db9dbd0a2b
2 changed files with 6 additions and 0 deletions

View File

@@ -6402,6 +6402,11 @@ JSValue JS_GetException(JSContext *ctx)
return val;
}
JS_BOOL JS_HasException(JSContext *ctx)
{
return !JS_IsNull(ctx->rt->current_exception);
}
static void dbuf_put_leb128(DynBuf *s, uint32_t v)
{
uint32_t a;