Skip to content

Commit a6ff29c

Browse files
committed
Fix infinite errors in REPL on Moar.
Maybe on JVM too.
1 parent 21a89d7 commit a6ff29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HLL/Compiler.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ class HLL::Compiler does HLL::Backend::Default {
8484
$output := self.eval($code, :outer_ctx($save_ctx), |%adverbs);
8585
CATCH {
8686
self.interactive_exception($!);
87-
next;
8887
}
8988
};
89+
next unless nqp::defined($output);
9090
if nqp::defined($*MAIN_CTX) {
9191
$save_ctx := $*MAIN_CTX;
9292
}

0 commit comments

Comments
 (0)