Skip to content

Commit

Permalink
Reword IO::CatHandles.handles to workaround JVM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Feb 26, 2018
1 parent 8a10fc1 commit eb06492
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/core/IO/CatHandle.pm
Expand Up @@ -107,15 +107,14 @@ my class IO::CatHandle is IO::Handle {
nqp::if(
$!gave-active,
nqp::if(
nqp::eqaddr((my $h := $!cat.next-handle), Nil),
IterationEnd,
$h),
nqp::defined(my $h := $!cat.next-handle),
$h,
IterationEnd),
nqp::stmts(
($!gave-active := True),
nqp::eqaddr(
(my $ah := nqp::decont(nqp::getattr($!cat, IO::CatHandle,
'$!active-handle'))),
Nil) ?? IterationEnd !! $ah))
nqp::defined(my $ah := nqp::decont(
nqp::getattr($!cat, IO::CatHandle, '$!active-handle')))
?? $ah !! IterationEnd))
}
}.new: self
}
Expand Down

0 comments on commit eb06492

Please sign in to comment.