Skip to content

Commit

Permalink
Proper children for stack
Browse files Browse the repository at this point in the history
  • Loading branch information
arnav-ag committed Apr 19, 2024
1 parent 95f0b87 commit ff15356
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vm/oogavm-heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,8 @@ export function getHeapJSON(): any {
case Tag.STACK:
heapItem['previous'] = getPrevStackAddress(curr);
heapItem['entry'] = peekStack(curr);
heapItem['value'] = peekStack(curr);
heapItem['children'] = [getPrevStackAddress(curr), peekStack(curr)];
break;
case Tag.ENVIRONMENT:
for (let i = 0; i < getSize(curr) - headerSize; i++) {
Expand Down

0 comments on commit ff15356

Please sign in to comment.