get-char now raises an error if the string port is closed (bug 245959)
This commit is contained in:
parent
f6957b91c2
commit
749080724c
|
@ -1007,6 +1007,8 @@
|
||||||
;;; returns #t if port is eof, #f otherwise
|
;;; returns #t if port is eof, #f otherwise
|
||||||
(unless (input-port? p)
|
(unless (input-port? p)
|
||||||
(die who "not an input port" p))
|
(die who "not an input port" p))
|
||||||
|
(when ($port-closed? p)
|
||||||
|
(die who "port is closed" p))
|
||||||
(let ([tr ($port-transcoder p)])
|
(let ([tr ($port-transcoder p)])
|
||||||
(unless tr
|
(unless tr
|
||||||
(die who "not a textual port" p))
|
(die who "not a textual port" p))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1531
|
1532
|
||||||
|
|
Loading…
Reference in New Issue