mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-29 01:49:18 +08:00
Revert "Add JS_HasException()
(#265)"
This reverts commit db9dbd0a2b6d115c9ef3c0dc37e0c669ef4844e4.
This commit is contained in:
parent
d378a9f3a5
commit
e02472dabc
@ -6402,11 +6402,6 @@ 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;
|
||||
|
@ -633,7 +633,6 @@ static inline JS_BOOL JS_IsObject(JSValueConst v)
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user