Browse Source

Set base class only when $base called.

release/v0.1
Rafal Kupiec 2 years ago
parent
commit
5c176207e1
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      engine/vm.c

+ 3
- 1
engine/vm.c View File

@ -4159,7 +4159,9 @@ static sxi32 VmByteCodeExec(
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Attempt to call parent class from non-inheritance instance of class '%z'", &pClass->sName);
}
pClass = pClass->pBase;
if(pNos->iFlags == MEMOBJ_BASE) {
pClass = pClass->pBase;
}
}
/* Extract attribute name first */
SyStringInitFromBuf(&sName, (const char *)SyBlobData(&pTos->sBlob), SyBlobLength(&pTos->sBlob));


Loading…
Cancel
Save