mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
js: Don't exit the REPL when pressing enter on an empty line
This commit is contained in:
parent
06d35d036d
commit
9c7451a21d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue