Fix exception handling in call-with-temporary-thread
This commit is contained in:
parent
d5e663cc1e
commit
7acb38377e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue