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