Monday, 9 September 2013

How to debug "warning: Recursive process.nextTick detected. This will break in the next version of node."

How to debug "warning: Recursive process.nextTick detected. This will
break in the next version of node."

Is there a way to trace the location of process.nextTick being called
recursively? E.g. in this case,
var normal = function(cb) {
process.nextTick(cb);
}
var bad = function() {
process.nextTick(bad);
};
normal(function() {
bad();
});
That the problem is on line 5 in function "bad"?

No comments:

Post a Comment