nodejs-ebay-api icon indicating copy to clipboard operation
nodejs-ebay-api copied to clipboard

Fixed "has stacks" error tests failing on macOS 10.12.1 and node v7.0.0.

Open andreaperizzato opened this issue 9 years ago • 0 comments

All tests “has stack“ in errors.test.js failed on my mac running macOS 10.12.1 and node v7.0.0.

Moving the call Error.captureStackTrace(this, this.constructor) after the name and message have been set solved the issue.

I spent a lot of time trying to understand why this is happening, but I couldn't find a proper answer. In fact, all tests do pass on travis-ci running node 4.1, 4.2, 0.12, 0.10.

andreaperizzato avatar Nov 16 '16 14:11 andreaperizzato