diff --git a/Userland/js.cpp b/Userland/js.cpp index ba4dbdf5c97..3f4d3e3b12d 100644 --- a/Userland/js.cpp +++ b/Userland/js.cpp @@ -164,7 +164,7 @@ void repl(JS::Interpreter& interpreter) while (true) { String piece = read_next_piece(); if (piece.is_empty()) - break; + continue; auto program = JS::Parser(JS::Lexer(piece)).parse_program(); if (dump_ast)