repl must reset stack after printing values since they run without a callframe

This commit is contained in:
K. Lange 2021-01-04 17:47:44 +09:00
parent fb9d0163ef
commit 49d2a26aa4

View File

@ -179,6 +179,7 @@ int main(int argc, char * argv[]) {
fprintf(stdout, " \033[1;30m=> ");
krk_printValue(stdout, result);
fprintf(stdout, "\033[0m\n");
krk_resetStack();
}
}