6 lines
114 B
JavaScript

export default () => {
const error = new Error('a');
error.errorProperty = 'errorProperty';
throw error;
};