visionmedia/mocha — Issue #180: err.stack undefined in ./lib/reporter/base.js:133 on RangeError
Author: joachimkainz
Created: 2011-12-28 04:38:25+00:00
State: open

```
describe('Function', function () {
function recurseForEver(callback) {
recurseForEver(callback);
}

it('should recurse without error', function (done) {
recurseForEver(done);
});
});
```

produces:

```
jfk@graz:~/workspace/1/site-manager$ mocha test/range.test.js
0) Function should recurse without error:
TypeError: Cannot call method 'indexOf' of undefined
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:133:23
at Array.forEach (native)
at Function.list (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:123:12)
at Dot.epilogue (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:224:10)
at Runner. (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/dot.js:54:10)
at Runner.emit (events.js:88:20)
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:390:10
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:355:7
at next (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:157:23)
at Array.0 (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:175:5)
at EventEmitter._tickCallback (node.js:192:40)

1) Function should recurse without error:
TypeError: Cannot call method 'indexOf' of undefined
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:133:23
at Array.forEach (native)
at Function.list (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:123:12)
at Dot.epilogue (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/base.js:224:10)
at Runner. (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/reporters/dot.js:54:10)
at Runner.emit (events.js:88:20)
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:390:10
at /home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:355:7
at next (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:157:23)
at Array.0 (/home/jfk/.nvm/v0.6.6/lib/node_modules/mocha/lib/runner.js:175:5)
at EventEmitter._tickCallback (node.js:192:40)
```