Skip to content

Commit

Permalink
Add comment about nextTick
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Sep 13, 2012
1 parent dd3acd3 commit c09b023
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/mincer/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ Context.prototype.evaluate = function (pathname, options, callback) {
}

result = data;

// some processors are sync, some async, some are mixed, so
// to avoid call-stack overflow, we schedule each next step
// on nextTick, so the call stack is kept reasonable.
//
// See: https://github.com/nodeca/mincer/issues/31

process.nextTick(next);
});
}, function (err) {
Expand Down

0 comments on commit c09b023

Please sign in to comment.