Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

err.stack undefined in ./lib/reporter/base.js:133 on RangeError #180

Closed
joachimkainz opened this issue Dec 28, 2011 · 0 comments
Closed

Comments

@joachimkainz
Copy link

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.<anonymous> (/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.<anonymous> (/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)
@tj tj closed this as completed in 2fa7766 Dec 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants