node/test/message/events_unhandled_error_subclass.js
Geoffrey Booth d6e626d54c
test: remove cjs loader from stack traces
PR-URL: https://github.com/nodejs/node/pull/44197
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2022-08-14 21:59:02 +00:00

8 lines
176 B
JavaScript

'use strict';
require('../common');
Error.stackTraceLimit = 1;
const EventEmitter = require('events');
class Foo extends EventEmitter {}
new Foo().emit('error', new Error());