1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 02:53:02 +00:00

symbolslots should be gc'd, local_symbols always pushed in case *debug* is set in middle of function

This commit is contained in:
Jona Ekenberg
2023-02-01 11:45:13 +01:00
parent 624a6cf619
commit ce31db09e4
5 changed files with 7 additions and 11 deletions

View File

@@ -824,6 +824,8 @@ static const uint8_t *unmarshal_one_def(
def->constants = NULL;
def->bytecode = NULL;
def->sourcemap = NULL;
def->symbolslots = NULL;
def->symbolslots_length = 0;
janet_v_push(st->lookup_defs, def);
/* Set default lengths to zero */