Tryeing to call a non-instantiated object should result in an error.
Todas as verificações foram bem sucedidas
The build was successful.
Todas as verificações foram bem sucedidas
The build was successful.
Esse commit está contido em:
@@ -4383,6 +4383,9 @@ static sxi32 VmByteCodeExec(
|
||||
}
|
||||
#endif
|
||||
if(pNos->iFlags & MEMOBJ_OBJ) {
|
||||
if(!pNos->x.pOther) {
|
||||
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Call to non-instantiated object '$%z'", &sName);
|
||||
}
|
||||
ph7_class *pClass;
|
||||
/* Class already instantiated */
|
||||
pThis = (ph7_class_instance *)pNos->x.pOther;
|
||||
|
Referência em uma nova issue
Block a user