From a6ff29c39327baf7234f7d2db381bc5af1f64e6a Mon Sep 17 00:00:00 2001 From: Jonathan Worthington Date: Fri, 21 Mar 2014 12:04:36 +0100 Subject: [PATCH] Fix infinite errors in REPL on Moar. Maybe on JVM too. --- src/HLL/Compiler.nqp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HLL/Compiler.nqp b/src/HLL/Compiler.nqp index 8b5b04196b..6678c2dfba 100644 --- a/src/HLL/Compiler.nqp +++ b/src/HLL/Compiler.nqp @@ -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; }