Commit afd7e37e authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani
Browse files

repl: better empty line handling

In REPL, if we try to evaluate an empty line, we get `undefined`.

    > process.version
    'v2.3.4'
    >
    undefined
    >
    undefined
    >

This patch prevents `undefined` from printing if the string is empty.

    > process.version
    'v2.3.5-pre'
    >
    >
    >

PR-URL: https://github.com/nodejs/io.js/pull/2163


Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent 81ea52aa
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