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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user