From ff15356b53a22f5ce5bd179731cba5e89cba44d0 Mon Sep 17 00:00:00 2001 From: arnav-ag Date: Fri, 19 Apr 2024 17:22:01 +0800 Subject: [PATCH] Proper children for stack --- src/vm/oogavm-heap.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vm/oogavm-heap.ts b/src/vm/oogavm-heap.ts index 80217d7..dea9413 100644 --- a/src/vm/oogavm-heap.ts +++ b/src/vm/oogavm-heap.ts @@ -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++) {