Use Object.getPrototypeOf() on the object in the REPL tab-completion.
authorNathan Rajlich <nathan@tootallnate.net>
Tue, 23 Aug 2011 17:39:23 +0000 (10:39 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 23 Aug 2011 22:35:36 +0000 (15:35 -0700)
commit8ec31a3362d016d6209694fb70639bf3d963e48b
tree5bbd8973cd601ac674e45669ca8020d877c87103
parentb15ab5de51e51d8f9dfaba8bcf4f62eee74ff721
Use Object.getPrototypeOf() on the object in the REPL tab-completion.

Some people use __proto__ to augment an Object's prototype after it's been created.
This patch helps make the "new" prototype properties visible if necessary.

This is also more consistent with the while logic below.
lib/repl.js