History

sl_print_child: print unbound as well

Instead of aborting in random places within the VM when throwing exceptions, print #<unbound>. In normal circumstances this won't ever happen.

Sigrid Solveig Haflínudóttir committed 3 months ago

Commit 4afe00d1 parent 8efbd141 file · +3 −1Browse files

Unified · Split

src/print.c+3−1
@@ -538,7 +538,9 @@ sl_print_child(sl_v v) · 537 unmodified lines
538538 outsc("#<eof>");
539539 else if(v == sl_void)
540540 outsc("#<void>");
541− else // unbound, should never happen
541+ else if(v == sl_unbound)
542+ outsc("#<unbound>");
543+ else
542544 abort();
543545 break;
544546 case TAG_FN:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t