mirror of https://github.com/nodejs/node.git
16 lines
247 B
JavaScript
16 lines
247 B
JavaScript
|
'use strict';
|
||
|
|
||
|
// This is meant to be run with --trace-exit.
|
||
|
|
||
|
const depth = parseInt(process.env.STACK_DEPTH) || 30;
|
||
|
let counter = 1;
|
||
|
function recurse() {
|
||
|
if (counter++ < depth) {
|
||
|
recurse();
|
||
|
} else {
|
||
|
process.exit(0);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
recurse();
|