mirror of
https://github.com/nodejs/node.git
synced 2025-05-02 17:01:08 +00:00

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
11 lines
232 B
JavaScript
11 lines
232 B
JavaScript
'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/);
|