mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 00:55:45 +00:00

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>
10 lines
197 B
JavaScript
10 lines
197 B
JavaScript
'use strict';
|
|
require('../common');
|
|
Error.stackTraceLimit = 1;
|
|
|
|
const EventEmitter = require('events');
|
|
const er = new Error();
|
|
process.nextTick(() => {
|
|
new EventEmitter().emit('error', er);
|
|
});
|