repair to decompiler printing of eq hash tables

This commit is contained in:
Matthew Flatt 2015-04-10 20:41:39 -06:00
parent 8e617a6e5b
commit c431d34955

View File

@ -112,7 +112,12 @@
(define ph (make-placeholder #f)) (define ph (make-placeholder #f))
(hash-set! ht e ph) (hash-set! ht e ph)
(placeholder-set! ph (placeholder-set! ph
(make-hash-placeholder ((cond
[(hash-eq? ht)
make-hasheq-placeholder]
[(hash-eqv? ht)
make-hasheqv-placeholder]
[else make-hash-placeholder])
(for/list ([(k v) (in-hash e)]) (for/list ([(k v) (in-hash e)])
(cons (loop k) (loop v))))) (cons (loop k) (loop v)))))
ph] ph]