1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-14 14:27:13 +00:00

symbolslots nil when there are no symbols, changed debugger to not have special case

This commit is contained in:
Jona Ekenberg
2023-02-01 11:25:52 +01:00
parent 587aa87d28
commit 624a6cf619
2 changed files with 3 additions and 2 deletions

View File

@@ -883,6 +883,8 @@ static Janet janet_disasm_slotcount(JanetFuncDef *def) {
}
static Janet janet_disasm_symbolslots(JanetFuncDef *def) {
// *debug* was probably not true when compiling the function
if (def->symbolslots == NULL) { return janet_wrap_nil(); }
JanetArray *symbolslots = janet_array(def->symbolslots_length);
for (int32_t i = 0; i < def->symbolslots_length; i++) {
JanetSymbolSlot ss = def->symbolslots[i];