Use VmCreateMemObj() to create $this.
Todas as verificações foram bem sucedidas
The build was successful.

Esse commit está contido em:
2019-05-01 14:00:35 +02:00
commit 3dfa4232ba

Ver arquivo

@@ -4610,7 +4610,7 @@ static sxi32 VmByteCodeExec(
if((pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) && pThis) {
/* Install the '$this' variable */
static const SyString sThis = { "this", sizeof("this") - 1 };
pObj = VmExtractMemObj(&(*pVm), &sThis, FALSE, TRUE);
pObj = VmCreateMemObj(&(*pVm), &sThis, FALSE);
if(pObj) {
/* Reflect the change */
pObj->x.pOther = pThis;