fix uncaught error throwing.

This commit is contained in:
Christopher Jeffrey 2013-08-02 12:47:22 -05:00
parent 7a8a0d2591
commit b7fa80cc2e

View File

@ -77,8 +77,7 @@ EventEmitter.prototype._emit = function(type, args) {
if (!handler) {
if (type === 'error') {
throw new Error('Unhandled error event: '
+ JSON.stringify(slice.call(arguments)));
throw new args[0];
}
return;
}