mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 06:20:23 +02:00
fix multiple values returning from srfi-18's `with-exception-handler'
* module/srfi/srfi-18.scm (with-exception-handler): Hah! Fixed a scurrilous bug in which we assumed that the thunk returned one or more values. Hah.
This commit is contained in:
parent
0f423f20aa
commit
2032f3d1db
1 changed files with 4 additions and 2 deletions
|
@ -151,8 +151,10 @@
|
|||
(hashq-set! thread-exception-handlers ct hl)
|
||||
(handler obj))
|
||||
(lambda ()
|
||||
(let ((r (thunk)))
|
||||
(hashq-set! thread-exception-handlers ct hl) r))))))
|
||||
(call-with-values thunk
|
||||
(lambda res
|
||||
(hashq-set! thread-exception-handlers ct hl)
|
||||
(apply values res))))))))
|
||||
|
||||
(define (current-exception-handler)
|
||||
(car (current-handler-stack)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue