mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
PR-URL: https://github.com/nodejs/node/pull/44197 Backport-PR-URL: https://github.com/nodejs/node/pull/46535 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Michaël Zasso <targos@protonmail.com>
8 lines
176 B
JavaScript
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());
|