Install $parent & $this only if there is class instantiated.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
3689a0239a
commit
5f90f3e8e1
|
@ -4679,7 +4679,7 @@ static sxi32 VmByteCodeExec(
|
||||||
/* Raise exception: Out of memory */
|
/* Raise exception: Out of memory */
|
||||||
PH7_VmMemoryError(&(*pVm));
|
PH7_VmMemoryError(&(*pVm));
|
||||||
}
|
}
|
||||||
if(pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) {
|
if(pThis && pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) {
|
||||||
/* Install the '$parent' variable */
|
/* Install the '$parent' variable */
|
||||||
static const SyString sParent = { "parent", sizeof("parent") - 1 };
|
static const SyString sParent = { "parent", sizeof("parent") - 1 };
|
||||||
pObj = VmCreateMemObj(&(*pVm), &sParent, TRUE);
|
pObj = VmCreateMemObj(&(*pVm), &sParent, TRUE);
|
||||||
|
|
Loading…
Reference in New Issue