blob: e2c9fa2a0c2c1eaa89d926580fb878ff6d4ebc82 (
plain)
1
2
3
4
5
6
7
8
9
10
|
'use strict';
require('../common');
const EventEmitter = require('events');
const assert = require('assert');
var EE = new EventEmitter();
assert.throws(function() {
EE.emit('error', 'Accepts a string');
}, /Accepts a string/);
|