Determine callback emptiness from the stored target for null coalescing
Build / AerScript (push) Successful in 39s

This commit is contained in:
2026-10-24 21:07:16 +02:00
parent 1026c8d525
commit d7fc8c1137
+2
View File
@@ -703,6 +703,8 @@ PH7_PRIVATE sxi32 PH7_MemObjIsNull(ph7_value *pObj) {
return !pObj->x.iVal; return !pObj->x.iVal;
} else if(pObj->nType & (MEMOBJ_OBJ | MEMOBJ_RES)) { } else if(pObj->nType & (MEMOBJ_OBJ | MEMOBJ_RES)) {
return pObj->x.pOther == 0 ? TRUE : FALSE; return pObj->x.pOther == 0 ? TRUE : FALSE;
} else if(pObj->nType & MEMOBJ_CALL) {
return SyBlobLength(&pObj->sBlob) == 0 ? TRUE : FALSE;
} else if(pObj->nType & MEMOBJ_STRING) { } else if(pObj->nType & MEMOBJ_STRING) {
if(SyBlobLength(&pObj->sBlob) <= 0) { if(SyBlobLength(&pObj->sBlob) <= 0) {
return TRUE; return TRUE;