repl: fix tab completion for a non-global context
authorSangmin Yoon <sangmin.yoon@croquis.com>
Wed, 27 May 2015 09:10:45 +0000 (18:10 +0900)
committercjihrig <cjihrig@gmail.com>
Thu, 25 Jun 2015 16:16:41 +0000 (12:16 -0400)
commitd735b2c6ef9dc710a2e8c58bf56dc6d28f5a4bd3
tree9ff060cbf50ff2860f2661dc5e0eff52780bace6
parentc370bd3aea69fdc8d7a8c33f749a512664f043be
repl: fix tab completion for a non-global context

Use vm.isContext() to properly identify contexts.

PR-URL: https://github.com/joyent/node/pull/25382
PR-URL: https://github.com/nodejs/io.js/pull/2052
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/repl.js
test/parallel/test-repl-tab-complete.js