Skip to content

Commit 6f9d05f

Browse files
authored
Expose JS_SetUncatchableError() (bellard#262)
* Expose `JS_SetUncatchableError()` * Remove unnecessary `JS_SetUncatchableError` declaration
1 parent d53aafe commit 6f9d05f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

quickjs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,6 @@ static JSValue js_module_ns_autoinit(JSContext *ctx, JSObject *p, JSAtom atom,
12761276
void *opaque);
12771277
static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p,
12781278
JSAtom atom, void *opaque);
1279-
void JS_SetUncatchableError(JSContext *ctx, JSValueConst val, BOOL flag);
12801279
static JSValue js_object_groupBy(JSContext *ctx, JSValueConst this_val,
12811280
int argc, JSValueConst *argv, int is_map);
12821281

quickjs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ JSValue JS_Throw(JSContext *ctx, JSValue obj);
635635
JSValue JS_GetException(JSContext *ctx);
636636
JS_BOOL JS_HasException(JSContext *ctx);
637637
JS_BOOL JS_IsError(JSContext *ctx, JSValueConst val);
638+
void JS_SetUncatchableError(JSContext *ctx, JSValueConst val, JS_BOOL flag);
638639
void JS_ResetUncatchableError(JSContext *ctx);
639640
JSValue JS_NewError(JSContext *ctx);
640641
JSValue __js_printf_like(2, 3) JS_ThrowSyntaxError(JSContext *ctx, const char *fmt, ...);

0 commit comments

Comments
 (0)