marijnh/tern — pull request #268 by sqs (2014-01-10 04:09:41+00:00)
Title: Failing condense test case (triggers a stack overflow)

This PR adds a failing test case that exhibits a stack overflow bug in the condenser.

Here's the error message:

```
$ bin/test
Ran 367 tests from 59 files.
All passed.

/home/sqs/src/github.com/sqs/tern/lib/infer.js:0
(function (exports, require, module, __filename, __dirname) { // Main type inf
^
RangeError: Maximum call stack size exceeded
```

I saw this error occurring on a file in the node.js API ([tls.js](https://github.com/joyent/node/blob/5106cadffba559ac788a8c1b9a555a6d192d95aa/lib/tls.js#L200)) and isolated it to these few lines.