PR-URL: https://github.com/nodejs/node/pull/49646 Fixes: https://github.com/nodejs/node/issues/48937 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
6 lines
146 B
JavaScript
6 lines
146 B
JavaScript
'use strict';
|
|
|
|
module.exports = async function * customReporter() {
|
|
yield 'Going to throw an error\n';
|
|
throw new Error('Reporting error');
|
|
};
|