lib: avoid REPL exit on completion error
authorRich Trott <rtrott@gmail.com>
Wed, 14 Oct 2015 04:39:16 +0000 (21:39 -0700)
committerJames M Snell <jasnell@gmail.com>
Thu, 29 Oct 2015 15:38:41 +0000 (08:38 -0700)
commitf49c7c6955331cb43795c324117d9b53e3028190
tree511392a80a5c7cd86db13fefe0feeb468af8eef2
parent93847694ece68d579aee6c037ee5dc2ce31b6408
lib: avoid REPL exit on completion error

If a tab completion is attempted on an undefined reference inside of a
function, the REPL was exiting without reporting an error or anything
else. This change results in the REPL reporting the ReferenceError and
continuing.

Fixes: https://github.com/nodejs/node/issues/3346
PR-URL: https://github.com/nodejs/node/pull/3358
Reviewed-By: James M Snell <jasnell@gmail.com>
lib/repl.js
test/parallel/test-repl-tab-complete-crash.js [new file with mode: 0644]