When the loop isn't closed on the same line, expect "Unexpected end of input" or "Unexpected }".
Loops are handled by the node repl by waiting for the syntax exception and then "recovering".
Can we do better? Can we eval while in the loop? Since we "compile" the code at runtime, we'll have to parse a bit.