You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
334 B

'use strict';
const common = require('../common');
var assert = require('assert');
var events = require('events');
var domain = require('domain');
var e = new events.EventEmitter();
var d = domain.create();
d.add(e);
d.on('error', common.mustCall(function(er) {
assert(er instanceof Error, 'error created');
}));
e.emit('error');