This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { on, EventEmitter } = require('events'); | |
const assert = require('assert'); | |
async function error() { | |
const ee = new EventEmitter(); | |
const _err = new Error('kaboom'); | |
process.nextTick(() => { | |
ee.emit('foo', 'bar'); | |
ee.emit('foo', 233); | |
ee.emit('foo', Symbol('233')); |