mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
js: Insert newline after each line in REPL mode
This makes ASI work in the REPL.
This commit is contained in:
parent
54852832b1
commit
3ccf4dc7ad
Notes:
sideshowbarker
2024-07-18 11:58:10 +09:00
Author: https://github.com/yeeter-the-dog 🔰 Commit: https://github.com/SerenityOS/serenity/commit/3ccf4dc7ad4 Pull-request: https://github.com/SerenityOS/serenity/pull/8177
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ static String read_next_piece()
|
|||
s_editor->add_to_history(line);
|
||||
|
||||
piece.append(line);
|
||||
piece.append('\n');
|
||||
auto lexer = JS::Lexer(line);
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Reference in a new issue