Fix exception handling in call-with-temporary-thread

This commit is contained in:
Christopher Baines 2024-02-01 10:39:11 +01:00
parent d5e663cc1e
commit 7acb38377e

View file

@ -992,7 +992,7 @@
(with-exception-handler (with-exception-handler
(lambda (exn) (lambda (exn)
(put-message channel `(exception ,exn))) (put-message channel `(exception . ,exn)))
(lambda () (lambda ()
(with-throw-handler #t (with-throw-handler #t
(lambda () (lambda ()
@ -1006,8 +1006,8 @@
(match (get-message channel) (match (get-message channel)
(('values . results) (('values . results)
(apply values results)) (apply values results))
(('exception . args) (('exception . exn)
(apply throw args))))) (raise-exception exn)))))
(define (inferior-eval-with-store/non-blocking inferior store proc) (define (inferior-eval-with-store/non-blocking inferior store proc)
(call-with-temporary-thread (call-with-temporary-thread