Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make IO::Handle.lines push unboxed strings
  • Loading branch information
lizmat committed Sep 14, 2015
1 parent 2475abf commit 1391588
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/IO/Handle.pm
Expand Up @@ -357,7 +357,8 @@ my class IO::Handle does IO {
else {
nqp::bindattr_i($!handle, IO::Handle, '$!ins',
nqp::add_i(nqp::getattr_i($!handle, IO::Handle, '$!ins'), 1));
nqp::p6box_s(nqp::readlinefh($!PIO)).chomp
# XXX until we have nqp::readlinefhchomp
CHOPCRLF(nqp::readlinefh($!PIO));
}
}
}.new(self, $close));
Expand All @@ -372,7 +373,7 @@ my class IO::Handle does IO {
else {
nqp::bindattr_i($!handle, IO::Handle, '$!ins',
nqp::add_i(nqp::getattr_i($!handle, IO::Handle, '$!ins'), 1));
nqp::p6box_s(nqp::readlinefh($!PIO))
nqp::readlinefh($!PIO);
}
}
}.new(self, $close));
Expand Down

0 comments on commit 1391588

Please sign in to comment.