debugger: use requireRepl() to load debugger repl
authorcjihrig <cjihrig@gmail.com>
Wed, 26 Nov 2014 15:46:59 +0000 (10:46 -0500)
committercjihrig <cjihrig@gmail.com>
Sat, 6 Dec 2014 20:24:54 +0000 (15:24 -0500)
commit616343bc61d389cae571191c52abe97708878570
tree97de6a97c93ede6ea5bdd4dc549a48f1b0bd3d71
parent244a8f78d678c5f7d131a89ccdbf425319a793b1
debugger: use requireRepl() to load debugger repl

Currently, the debugger uses require('repl') to setup the repl.
However, require.extensions is not available yet, causing a
crash on tab completion of require('. This commit uses the
module.requireRepl() method to bootstrap the repl.

Fixes: https://github.com/joyent/node/issues/8359
PR-URL: https://github.com/iojs/io.js/pull/49
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/_debugger.js
test/simple/test-repl-tab-complete.js