mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 08:42: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>
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());
|