Is there a way to break out of an infinite loop in the node.js REPL?
For example, running while (true) {}
essentially hangs the REPL so intensely that no combination of Ctrl-D
or Ctrl-C
have any effect. The only thing I've found that works is to kill the node process or close the terminal window.
Seems like there should be a better way.