repl: support non-array `.scope`, document it
authorYazhong Liu <yorkiefixer@gmail.com>
Tue, 12 May 2015 08:00:35 +0000 (16:00 +0800)
committerFedor Indutny <fedor@indutny.com>
Sun, 17 May 2015 10:22:26 +0000 (12:22 +0200)
commit6edc900b9579dcf4b556565e9b9161d8d927e35e
treebcb53819ee688a6c6770d5148fd6ec097059dee5
parent7c52e1c1f47ac9d2f15048c2606331e3e09c5f6c
repl: support non-array `.scope`, document it

REPL evaluate `.scope` when it needs to get a list of the variable names
available in the current scope. Do not throw if the output of such
evaluation is not array, just ignore it.

PR-URL: https://github.com/nodejs/io.js/pull/1682
Reviewed-By: Fedor Indutny <fedor@indutny.com>
doc/api/repl.markdown
lib/repl.js
test/parallel/test-repl-tab.js [new file with mode: 0644]