Skip to content
Permalink
Browse files

Make IO::Handle.get error after .close less LTA (R#2272)

Instead of producing:

  eof requires an object with REPR MVMOSHandle (got VMNull with REPR Null)

it will now return Nil.  Please note that this does *not* fix the reading
from buffer after close issue.
  • Loading branch information...
lizmat committed Sep 12, 2018
1 parent 528def4 commit d419a313123608c240c2f154eaceca28d1e1a68f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/IO/Handle.pm6
@@ -235,7 +235,7 @@ my class IO::Handle {
}

method EOF() {
nqp::eoffh($!PIO)
nqp::isnull($!PIO) || nqp::eoffh($!PIO)
}

method READ(Int:D $bytes) {

0 comments on commit d419a31

Please sign in to comment.
You can’t perform that action at this time.