events: Handle missing error obj when domains in use
authorJulian Gruber <julian@juliangruber.com>
Fri, 8 Mar 2013 18:41:28 +0000 (19:41 +0100)
committerisaacs <i@izs.me>
Sun, 10 Mar 2013 16:53:24 +0000 (09:53 -0700)
commit738347b90433a38538ab298bf38860e83a4abc53
tree2653e14548c749f5bb800d8da5923eee18ef04bc
parentc9a4ec9c6392fefa7ce6c66168f4c535ea0702e1
events: Handle missing error obj when domains in use

so `ee.emit('error')` doesn't throw when domains are active

create an empty error only when handled by a domain

test for when no error is provided to an error event
lib/events.js
test/simple/test-event-emitter-no-error-provided-to-error-event.js [new file with mode: 0644]