Skip to content

Commit

Permalink
Fix infinite errors in REPL on Moar.
Browse files Browse the repository at this point in the history
Maybe on JVM too.
  • Loading branch information
jnthn committed Mar 21, 2014
1 parent 21a89d7 commit a6ff29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HLL/Compiler.nqp
Expand Up @@ -84,9 +84,9 @@ class HLL::Compiler does HLL::Backend::Default {
$output := self.eval($code, :outer_ctx($save_ctx), |%adverbs);
CATCH {
self.interactive_exception($!);
next;
}
};
next unless nqp::defined($output);
if nqp::defined($*MAIN_CTX) {
$save_ctx := $*MAIN_CTX;
}
Expand Down

0 comments on commit a6ff29c

Please sign in to comment.