This commit is contained in:
2026-02-01 18:34:35 -06:00
parent a189440769
commit 6150406905
10 changed files with 731 additions and 728 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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