about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKasper Isager Dalsgarð <kasperisager@hey.com>2024-05-09 12:45:47 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-30 18:55:56 +0200
commit1cfca841d138f7aede0dcd46444b35c51b5d3cce (patch)
tree02bae6f8a6b05631aeec97fca754cb7b8c05ebd0
parent3df4a6d03143543999c142cd9de807956c6351cc (diff)
downloadchawan-1cfca841d138f7aede0dcd46444b35c51b5d3cce.tar.gz
Expose `JS_SetUncatchableError()` (#262)
* Expose `JS_SetUncatchableError()`

* Remove unnecessary `JS_SetUncatchableError` declaration
-rw-r--r--lib/quickjs/quickjs.c1
-rw-r--r--lib/quickjs/quickjs.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c
index c33314ec..0cf9bc3d 100644
--- a/lib/quickjs/quickjs.c
+++ b/lib/quickjs/quickjs.c
@@ -1280,7 +1280,6 @@ static JSValue js_module_ns_autoinit(JSContext *ctx, JSObject *p, JSAtom atom,
                                  void *opaque);
 static JSValue JS_InstantiateFunctionListItem2(JSContext *ctx, JSObject *p,
                                                JSAtom atom, void *opaque);
-void JS_SetUncatchableError(JSContext *ctx, JSValueConst val, BOOL flag);
 static JSValue js_object_groupBy(JSContext *ctx, JSValueConst this_val,
                                  int argc, JSValueConst *argv, int is_map);
 
diff --git a/lib/quickjs/quickjs.h b/lib/quickjs/quickjs.h
index 83107599..75037516 100644
--- a/lib/quickjs/quickjs.h
+++ b/lib/quickjs/quickjs.h
@@ -637,6 +637,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, ...);