Commit ea5195cc authored by Fedor Indutny's avatar Fedor Indutny
Browse files

repl: do not save history for non-terminal repl

When running in non-TTY mode - the `repl.history` is `undefined` and
is not actually populated. Saving it will result in a crashes of
subsequent repl runs.

Fix: https://github.com/iojs/io.js/issues/1574
PR-URL: https://github.com/iojs/io.js/pull/1575


Reviewed-By: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
parent 79a7a86d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment