Chez Scheme: fix $describe-fasl-from-port with cycles

This commit is contained in:
Matthew Flatt 2020-11-22 15:21:44 -07:00
parent 3ccb523f1a
commit 8751e5b75f

View File

@ -730,9 +730,12 @@
[else
(let ([p (eq-hashtable-cell ht x #f)])
(or (cdr p)
(let ([self (vector 'CYCLE #f)])
(set-cdr! p self)
(let ([v (describe-next x)])
(vector-set! self 1 v)
(set-cdr! p v)
v)))]))
v))))]))
(define (describe-next x)
(fasl-case x
[entry (situation fasl)