Sitelet https://github.com/nodejs/node/pull/49646/commits/aebf089c17c7d1c564749346bfff62e4e6090d3a
Skip to content
Closed
Show file tree
Hide file tree
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
Apply suggestions from code review
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
MoLow and cjihrig authored Sep 21, 2023
commit aebf089c17c7d1c564749346bfff62e4e6090d3a
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = async function * customReporter() {
yield "Going to throw an error\n";
yield 'Going to throw an error\n';
setImmediate(() => {
throw new Error('Reporting error');
});
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/test-runner/custom_reporters/throwing.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

module.exports = async function * customReporter() {
Comment thread
MoLow marked this conversation as resolved.
yield "Going to throw an error\n";
yield 'Going to throw an error\n';
throw new Error('Reporting error');
};