Permalink
Browse files

Added comment describing the long stack counter

1 parent 1c421c5 commit 0cb47571bdce548faccd28707e7b3548d41a8f50 @jbunton-atlassian jbunton-atlassian committed Oct 31, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 q.js
View
@@ -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

0 comments on commit 0cb4757

Please sign in to comment.