Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjust reading new code for the NQP REPL, jnthn++.
  • Loading branch information
peschwa committed Mar 30, 2015
1 parent 3110921 commit d86c3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HLL/Compiler.nqp
Expand Up @@ -67,8 +67,8 @@ class HLL::Compiler does HLL::Backend::Default {
while 1 {
last if nqp::eoffh($stdin);

my $newcode := nqp::readlineintfh($stdin, ~$prompt);
if nqp::isnull($newcode) || !nqp::defined($newcode) {
my str $newcode := nqp::readlineintfh($stdin, ~$prompt);
if nqp::isnull_s($newcode) {
nqp::print("\n");
last;
}
Expand Down

0 comments on commit d86c3c5

Please sign in to comment.