mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
PR-URL: https://github.com/nodejs/node/pull/18097 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
11 lines
182 B
JavaScript
11 lines
182 B
JavaScript
'use strict';
|
|
require('../common');
|
|
|
|
process.maxTickDepth = 10;
|
|
let i = 20;
|
|
process.nextTick(function f() {
|
|
console.error(`tick ${i}`);
|
|
if (i-- > 0)
|
|
process.nextTick(f);
|
|
});
|