joyent/node — Issue #2031: REPL quits when a function does not receive an expected callback
Author: Mortchek
Created: 2011-11-06 02:47:04+00:00
State: open

v0.6.0. At least certain functions which expect a callback argument will cause the REPL to quit after outputting an error if the callback is not provided. Sample input/output:

`> require('dns').resolve('127.0.0.1');
TypeError: Cannot set property 'immediately' of undefined
at query (dns.js:175:26)
at Object.resolve (dns.js:203:12)
at repl:1:16
at REPLServer.eval (repl.js:80:21)
at repl.js:190:20
at REPLServer.eval (repl.js:87:5)
at Interface. (repl.js:182:12)
at Interface.emit (events.js:67:17)
at Interface._onLine (readline.js:162:10)
at Interface._line (readline.js:426:8)
>
dns.js:165
callback(errnoException(errno, bindingName));
^
TypeError: undefined is not a function
at Object.onanswer [as oncomplete] (dns.js:165:9)`