Browse Source

Allow to access variables from active frames after exception is thrown.

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

+ 1
- 1
engine/vm.c View File

@ -1400,7 +1400,7 @@ static ph7_value *VmExtractMemObj(
}
break;
}
if(pFrame->iFlags & VM_FRAME_LOOP && pFrame->pParent) {
if(pFrame->pParent && pFrame->iFlags & (VM_FRAME_LOOP | VM_FRAME_EXCEPTION | VM_FRAME_CATCH | VM_FRAME_FINALLY)) {
pFrame = pFrame->pParent;
} else {
break;

Loading…
Cancel
Save