1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-25 03:34:49 +00:00

Update pretty printer to remove values

from seen table.
This commit is contained in:
Calvin Rose
2018-11-19 09:57:24 -05:00
parent 8520d3f6cb
commit a7860f1dd1
3 changed files with 11 additions and 1 deletions

View File

@@ -518,7 +518,7 @@ static void janet_pretty_one(struct pretty *S, Janet x) {
switch (janet_type(x)) {
default:
janet_description_b(S->buffer, x);
return;
break;
case JANET_ARRAY:
case JANET_TUPLE:
{
@@ -579,6 +579,8 @@ static void janet_pretty_one(struct pretty *S, Janet x) {
break;
}
}
/* Remove from seen */
janet_table_remove(&S->seen, x);
return;
}