joyent/node — pull request #4629 by cxreg (2013-01-20 03:33:22+00:00)
Title: make repl compatible with domains

The try/catch in repl.js keeps any active domain from catching the
error. Since the domain may not even be enterd until the code is run,
it's not possible to avoid the try/catch, so emit on the domain when an
error is thrown.

Originally discovered in the comments under PR #4570