Implement numeric string escapes and fix hexadecimal escape parsing and respect constant name length in undefined constant diagnostics
Build / AerScript (push) Successful in 39s

This commit is contained in:
2026-10-26 23:09:29 +01:00
parent ab323701d0
commit f74af13f98
2 changed files with 64 additions and 38 deletions
+3 -1
View File
@@ -3306,8 +3306,10 @@ Resume:
pTos->nIdx = SXU32_HIGH;
break;
} else if(pInstr[2].iOp != PH7_OP_MEMBER && pInstr[2].iOp != PH7_OP_NEW && pInstr[2].iOp != PH7_OP_IS) {
SyString sName;
SyStringInitFromBuf(&sName, SyBlobData(&pObj->sBlob), SyBlobLength(&pObj->sBlob));
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Call to undefined constant ‘%s’", SyBlobData(&pObj->sBlob));
"Call to undefined constant ‘%z’", &sName);
}
}
}