Tryeing to call a non-instantiated object should result in an error.
所有检测均成功
The build was successful.

这个提交包含在:
Rafal Kupiec 2018-09-24 12:10:19 +02:00
父节点 f72d6c3922
当前提交 369cadfcda
签署人:: belliash
GPG 密钥 ID: 4E829243E0CFE6B4

查看文件

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