summaryrefslogtreecommitdiff
path: root/test/parallel/test-ttywrap-stack.js
blob: b2ad69b1b2ecdc74252aea5df4f3fa4ece468def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';
const common = require('../common');

// This test ensures that console.log
// will not crash the process if there
// is not enough space on the V8 stack

const done = common.mustCall(() => {});

async function test() {
  await test();
}

(async () => {
  try {
    await test();
  } catch (err) {
    console.log(err);
  }
})().then(done, done);