Skip to content

Commit

Permalink
Update IO::Handle.eof to check decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn authored and zoffixznet committed May 26, 2017
1 parent b439001 commit 8509f1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/IO/Handle.pm
Expand Up @@ -181,7 +181,9 @@ my class IO::Handle {
}

method eof(IO::Handle:D:) {
nqp::p6bool(nqp::eoffh($!PIO));
nqp::p6bool($!decoder
?? $!decoder.is-empty && nqp::eoffh($!PIO)
!! nqp::eoffh($!PIO));
}

method get(IO::Handle:D:) {
Expand Down

0 comments on commit 8509f1d

Please sign in to comment.