repl: Empty command should be sent to eval function
This fixes a regression introduced in https://github.com/nodejs/node/pull/6171
The command line debugger relies on the previous behavior. This adds a regression test and restores it.
Checklist
-
make -j4 test
passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
repl