pretext
This commit is contained in:
1411
source/quickjs.c
1411
source/quickjs.c
File diff suppressed because it is too large
Load Diff
@@ -150,9 +150,7 @@ enum {
|
||||
JS_TAG_CATCH_OFFSET = 0x1F, /* 11111 */
|
||||
};
|
||||
|
||||
typedef struct JSRefCountHeader {
|
||||
int ref_count;
|
||||
} JSRefCountHeader;
|
||||
#define JS_EMPTY_TEXT ((JSValue)JS_TAG_STRING_IMM)
|
||||
|
||||
/* JSGCRef - for rooting values during GC */
|
||||
typedef struct JSGCRef {
|
||||
@@ -601,7 +599,7 @@ static inline JS_BOOL JS_IsBlob (JSValue v) {
|
||||
}
|
||||
|
||||
static inline JS_BOOL JS_IsText(JSValue v) {
|
||||
return JS_IsObject(v) && objhdr_type(*(objhdr_t *)JS_VALUE_GET_PTR(v)) == OBJ_TEXT;
|
||||
return MIST_IsImmediateASCII(v) || (JS_IsObject(v) && objhdr_type(*(objhdr_t *)JS_VALUE_GET_PTR(v)) == OBJ_TEXT);
|
||||
}
|
||||
|
||||
// Fundamental
|
||||
|
||||
Reference in New Issue
Block a user