Fixed table iteration bug, added vm.globals to debug lib

This commit is contained in:
2021-01-25 16:14:51 -06:00
parent cd6744ab65
commit cff26574bb
7 changed files with 73 additions and 17 deletions

View File

@@ -235,7 +235,7 @@ void markRoots(CState *state) {
markObject(state, (CObj*)upvalue);
}
markTable(state, &state->globals);
markObject(state, (CObj*)state->globals);
// mark all internal strings
for (int i = 0; i < ISTRING_MAX; i++)