Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! events: show inspected error in uncaught 'error' message
  • Loading branch information
addaleax committed Jan 21, 2019
commit 108c16fb650928615d6478b1c85066844ff3478c
4 changes: 2 additions & 2 deletions test/parallel/test-event-emitter-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ common.expectsError(
common.expectsError(
() => EE.emit('error', {
message: 'Error!',
[util.inspect.custom]() { throw null; }
[util.inspect.custom]() { throw new Error(); }
}),
{
code: 'ERR_UNHANDLED_ERROR',
type: Error,
message: "Unhandled error. ([object Object])"
message: 'Unhandled error. ([object Object])'
}
);