joyent/node — Issue #2034: REPL .clear not reseting in 0.6.0
Author: remy
Created: 2011-11-07 12:05:51+00:00
State: open

From the command line:

> name = 'remy';
'remy'
> name
'remy'
> .clear
Clearing context...
> name
'remy'

Was expecting an exception to be thrown.

When running on 0.4.12:

> name = 'remy';
'remy'
> name
'remy'
> .clear
Clearing context...
> name
ReferenceError: name is not defined
at [object Context]:1:1
at Interface. (repl.js:179:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream. (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
at ReadStream._emitKey (tty_posix.js:307:10)
at ReadStream.onData (tty_posix.js:70:12)