Return can break loop execution as well. If it does, it needs to ensure VM_FRAME_ACTIVE is on top.
The build was successful. 詳情

This commit is contained in:
Rafal Kupiec 2019-12-22 22:40:11 +01:00
父節點 c730082fa0
當前提交 709b5971c6
簽署人: belliash
GPG 金鑰 ID: 4E829243E0CFE6B4
共有 1 個檔案被更改,包括 6 行新增0 行删除

查看文件

@ -1901,6 +1901,12 @@ static sxi32 VmByteCodeExec(
if(pLastRef) {
*pLastRef = pTos->nIdx;
}
/* Ensure we are in active loop. Force abort all loops */
if(pVm->pFrame->iFlags & VM_FRAME_LOOP) {
while((pVm->pFrame->iFlags & VM_FRAME_ACTIVE) == 0) {
VmLeaveFrame(&(*pVm));
}
}
if(pResult) {
/* Execution result */
PH7_MemObjStore(pTos, pResult);