mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
fix stack narrowing for tail-call to throw
* module/system/repl/debug.scm (narrow-stack->vector): Fix for the tail-call to `throw' case, as in `(quit)'.
This commit is contained in:
parent
5bc97ad5dd
commit
3d4f8e3c2d
1 changed files with 5 additions and 1 deletions
|
@ -195,7 +195,11 @@
|
|||
v))
|
||||
|
||||
(define (narrow-stack->vector stack . args)
|
||||
(stack->vector (apply make-stack (stack-ref stack 0) args)))
|
||||
(let ((narrowed (apply make-stack (stack-ref stack 0) args)))
|
||||
(if narrowed
|
||||
(stack->vector narrowed)
|
||||
#()))) ; ? Can be the case for a tail-call to `throw' tho
|
||||
|
||||
|
||||
;; (define (debug)
|
||||
;; (run-debugger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue