Skip to content

Commit

Permalink
Added comment describing the long stack counter
Browse files Browse the repository at this point in the history
  • Loading branch information
jbunton-atlassian committed Oct 31, 2016
1 parent 1c421c5 commit 0cb4757
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions q.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,12 @@ Q.nextTick = nextTick;
*/
Q.longStackSupport = false;

/**
* The counter is used to determine the stopping point for building
* long stack traces. In makeStackTraceLong we walk backwards through
* the linked list of promises, only stacks which were created before
* the rejection are concatenated.
*/
var longStackCounter = 1;

// enable long stacks if Q_DEBUG is set
Expand Down

0 comments on commit 0cb4757

Please sign in to comment.