Implement numeric string escapes and fix hexadecimal escape parsing and respect constant name length in undefined constant diagnostics
Build / AerScript (push) Successful in 39s
Build / AerScript (push) Successful in 39s
This commit is contained in:
+3
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user