From d8059ae92d5e9e6fa66df43e569cd3977583591c Mon Sep 17 00:00:00 2001 From: JothamWong <45916998+JothamWong@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:30:57 +0800 Subject: [PATCH] Fix test case from crashing --- src/tests/test.ts | 2 +- src/vm/oogavm-machine.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test.ts b/src/tests/test.ts index ba20433..2d7353e 100644 --- a/src/tests/test.ts +++ b/src/tests/test.ts @@ -477,7 +477,7 @@ x; `, 5, '', - 100 + 300 ); // Testing mark and sweep, with exactly one variable that should be freed diff --git a/src/vm/oogavm-machine.ts b/src/vm/oogavm-machine.ts index 5e82b13..7fc735c 100644 --- a/src/vm/oogavm-machine.ts +++ b/src/vm/oogavm-machine.ts @@ -756,7 +756,7 @@ export function run(numWords = 1000000) { log('After STD initialization: '); printHeapUsage(); log('Return value: ' + returnValue); - console.log('Return value: ' + returnValue); + // console.log('Return value: ' + returnValue); return returnValue; }