mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-12 11:06:10 +08:00
fixed JS_IsString() with ropes
This commit is contained in:
parent
25ffdb418e
commit
c505ac0f39
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user