0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Sakthipriyan Vairamani afd7e37ee0 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: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-07-25 00:34:06 +05:30
..
internal util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_debug_agent.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_debugger.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_http_agent.js http: logically respect maxSockets 2015-04-17 12:20:44 -04:00
_http_client.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_http_common.js http: simplify code and remove unused properties 2015-05-25 01:07:22 -04:00
_http_incoming.js http: revert deprecation of client property 2015-05-31 20:37:44 +02:00
_http_outgoing.js http: Check this.connection before using it 2015-07-22 21:44:59 +05:30
_http_server.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_linklist.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
_stream_transform.js stream: simpler stream constructon 2015-02-04 20:19:39 -08:00
_stream_wrap.js _stream_wrap: prevent use after free in TLS 2015-06-30 20:09:22 -07:00
_stream_writable.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
_tls_common.js tls: destroy singleUse context immediately 2015-04-30 11:02:30 +02:00
_tls_legacy.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
_tls_wrap.js tls: add getTicketKeys()/setTicketKeys() 2015-07-23 11:13:26 -07:00
assert.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
buffer.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
child_process.js child_process: fix arguments comments 2015-07-12 01:16:31 +02:00
cluster.js cluster: emit 'message' event on cluster master 2015-07-23 14:51:10 -07:00
console.js lib: fix eslint styles 2015-05-09 12:10:02 +09:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
dgram.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
dns.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
domain.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
events.js events: provide better error message for unhandled error 2015-05-12 08:33:20 -05:00
freelist.js lib,test: add freelist deprecation and test 2015-07-17 19:48:31 -07:00
fs.js fs: fix error on bad listener type 2015-07-10 14:23:18 -07:00
http.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
https.js Revert "url: significantly improve the performance of the url module" 2015-05-03 20:29:41 -07:00
module.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
net.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
os.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
path.js path: assert path.join() arguments equally 2015-07-12 01:05:05 +02:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing new for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
readline.js readline: fix freeze if keypress event throws 2015-07-11 21:12:25 +03:00
repl.js repl: better empty line handling 2015-07-25 00:34:06 +05:30
smalloc.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
stream.js lib,test: fix whitespace issues 2015-06-15 16:37:37 +02:00
string_decoder.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
sys.js util: introduce printDeprecationMessage function 2015-06-04 10:59:43 +03:00
timers.js lib: simplify nextTick() usage 2015-05-25 10:14:18 -04:00
tls.js lib: don't use global Buffer 2015-06-11 20:24:44 +02:00
tty.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
url.js url: fix typo in comment 2015-06-30 13:47:57 -07:00
util.js util: removing redundant checks in is* functions 2015-07-21 23:24:23 +05:30
v8.js lib: deprecate the smalloc module 2015-04-29 19:33:43 +02:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: prevent uncaught exception in zlibBuffer 2015-06-15 15:43:08 -06:00