Welcome to mirror list, hosted at ThFree Co, Russian Federation.

max_tick_depth.js « message « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c433c0bab3f1006af1eb029f2ec556d9fbb83049 (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
require('../common');

process.maxTickDepth = 10;
let i = 20;
process.nextTick(function f() {
  console.error('tick %d', i);
  if (i-- > 0)
    process.nextTick(f);
});