From: Fabrice Bellard Date: Thu, 10 Apr 2025 09:51:41 +0000 (+0200) Subject: fixed JS_IsString() with ropes X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=c505ac0f39d1b185a35c518b37db928b7b9bc2a9;p=quickjs.git fixed JS_IsString() with ropes --- diff --git a/quickjs.h b/quickjs.h index d3bd07f..2d4b1f6 100644 --- a/quickjs.h +++ b/quickjs.h @@ -634,7 +634,8 @@ static inline JS_BOOL JS_IsUninitialized(JSValueConst v) static inline JS_BOOL JS_IsString(JSValueConst v) { - return JS_VALUE_GET_TAG(v) == JS_TAG_STRING; + return JS_VALUE_GET_TAG(v) == JS_TAG_STRING || + JS_VALUE_GET_TAG(v) == JS_TAG_STRING_ROPE; } static inline JS_BOOL JS_IsSymbol(JSValueConst v)