Skip to content

Instantly share code, notes, and snippets.

View zero1five's full-sized avatar
🚅
创业中

In zero1five

🚅
创业中
  • Hangzhou / China
View GitHub Profile
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'));