mirror of https://github.com/lukechilds/node.git
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.
13 lines
319 B
13 lines
319 B
9 years ago
|
'use strict';
|
||
|
// Refs: https://github.com/nodejs/node/issues/728
|
||
|
const common = require('../common');
|
||
|
const assert = require('assert');
|
||
|
const EventEmitter = require('events');
|
||
|
const ee = new EventEmitter();
|
||
|
|
||
|
ee.on('__proto__', common.mustCall((data) => {
|
||
|
assert.strictEqual(data, 42);
|
||
|
}));
|
||
|
|
||
|
ee.emit('__proto__', 42);
|