io: fix result of file-stream-port?

This commit is contained in:
Matthew Flatt 2019-02-13 10:41:12 -07:00
parent 5339a36187
commit a4bd83011b

View File

@ -12,10 +12,11 @@
(make-struct-type-property 'file-stream))
(define (file-stream-port? p)
(file-stream-ref
(and (file-stream-ref
(or (->core-input-port p #:default #f)
(->core-output-port p #:default #f)
(raise-argument-error 'file-stream-port?
"port?"
p))
#f))
#f)
#t))