joyent/node — pull request #4802 by ithinkihaveacat (2013-02-19 08:34:38+00:00)
Title: test: add create raw EventEmitter object

This test currently fails, but I think it should succeed. (Pull request as example of bug, basically.) The bug is that for some reason these two forms are not parallel:

````js
e = new require('events').EventEmitter(); // undefined
s = new require('http').Server(); // http.Server object
````

For some reason adding parens to the first form makes it returns the expected result:

````js
e = new (require('events').EventEmitter)();
````

(The `http.Server` version also works with parens in the same place.)