update: QuickJS 2025-04-26.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
This commit is contained in:
parent
0867811952
commit
3ba41291db
@ -743,7 +743,7 @@ $(SQLITE_OBJS): CFLAGS += \
|
||||
|
||||
QUICKJS_SOURCES := \
|
||||
deps/quickjs/cutils.c \
|
||||
deps/quickjs/libbf.c \
|
||||
deps/quickjs/dtoa.c \
|
||||
deps/quickjs/libregexp.c \
|
||||
deps/quickjs/libunicode.c \
|
||||
deps/quickjs/quickjs.c
|
||||
|
2
deps/quickjs
vendored
2
deps/quickjs
vendored
@ -1 +1 @@
|
||||
Subproject commit 3f81070e573e3592728dbbbd04c84c498b20d6dc
|
||||
Subproject commit 19abf1888db5884a5758036ff6e7fa2b340acedc
|
@ -4630,6 +4630,10 @@ void tf_ssb_sync_start(tf_ssb_t* ssb)
|
||||
|
||||
bool tf_ssb_tunnel_create(tf_ssb_t* ssb, const char* portal_id, const char* target_id, int connect_flags)
|
||||
{
|
||||
if (!portal_id || !target_id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
tf_ssb_connection_t* connection = tf_ssb_connection_get(ssb, portal_id);
|
||||
if (connection && !tf_ssb_connection_get(ssb, target_id))
|
||||
{
|
||||
|
@ -1788,7 +1788,7 @@ static JSValue _tf_ssb_createTunnel(JSContext* context, JSValueConst this_val, i
|
||||
const char* portal_id = JS_ToCString(context, argv[0]);
|
||||
const char* target_id = JS_ToCString(context, argv[1]);
|
||||
|
||||
bool result = tf_ssb_tunnel_create(ssb, portal_id, target_id, 0);
|
||||
bool result = portal_id && target_id && tf_ssb_tunnel_create(ssb, portal_id, target_id, 0);
|
||||
|
||||
JS_FreeCString(context, target_id);
|
||||
JS_FreeCString(context, portal_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user