-
Notifications
You must be signed in to change notification settings - Fork 29
Feature/cheaper long stack trace #300
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
Conversation
Breaks when running the tests with Phantom.js, looking into it. |
Note that the full versions of the traces that are captured this way won't be identical to the ones Bluebird would do with On that note -- how about letting |
Implemented that idea on the branch as well. |
}); | ||
}); | ||
|
||
it('should magically change', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this test be run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Via test/external.spec.js
This seems like at really good tradeoff, I also like the idea of having one debug flag - it is not a hard contract, we can change that without a major version. |
The drop in coverage was due to another coveralls fluke (lemurheavy/coveralls-public#750). It looks good again after I restarted it. |
👍 |
Attach a stack to all non-oathbreakable promises so that (a patched) Bluebird will render a long stack trace.
Perf. penalty seems to be about 3-4% according to chewbacca, whereas always forcing
BLUEBIRD_DEBUG=yes
regresses 22-25%.