Use VmCreateMemObj() to create $this.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
7c37451520
commit
3dfa4232ba
|
@ -4610,7 +4610,7 @@ static sxi32 VmByteCodeExec(
|
||||||
if((pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) && pThis) {
|
if((pVmFunc->iFlags & VM_FUNC_CLASS_METHOD) && pThis) {
|
||||||
/* Install the '$this' variable */
|
/* Install the '$this' variable */
|
||||||
static const SyString sThis = { "this", sizeof("this") - 1 };
|
static const SyString sThis = { "this", sizeof("this") - 1 };
|
||||||
pObj = VmExtractMemObj(&(*pVm), &sThis, FALSE, TRUE);
|
pObj = VmCreateMemObj(&(*pVm), &sThis, FALSE);
|
||||||
if(pObj) {
|
if(pObj) {
|
||||||
/* Reflect the change */
|
/* Reflect the change */
|
||||||
pObj->x.pOther = pThis;
|
pObj->x.pOther = pThis;
|
||||||
|
|
Loading…
Reference in New Issue