Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreaperizzato
Copy link

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.

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant