File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6402,6 +6402,11 @@ JSValue JS_GetException(JSContext *ctx)
64026402 return val;
64036403}
64046404
6405+ JS_BOOL JS_HasException(JSContext *ctx)
6406+ {
6407+ return !JS_IsNull(ctx->rt->current_exception);
6408+ }
6409+
64056410static void dbuf_put_leb128(DynBuf *s, uint32_t v)
64066411{
64076412 uint32_t a;
Original file line number Diff line number Diff line change @@ -633,6 +633,7 @@ static inline JS_BOOL JS_IsObject(JSValueConst v)
633633
634634JSValue JS_Throw (JSContext * ctx , JSValue obj );
635635JSValue JS_GetException (JSContext * ctx );
636+ JS_BOOL JS_HasException (JSContext * ctx );
636637JS_BOOL JS_IsError (JSContext * ctx , JSValueConst val );
637638void JS_ResetUncatchableError (JSContext * ctx );
638639JSValue JS_NewError (JSContext * ctx );
You can’t perform that action at this time.
0 commit comments