1
Fork 0
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:
Andy Wingo 2010-08-06 17:39:44 +02:00
parent 5bc97ad5dd
commit 3d4f8e3c2d

View file

@ -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