xref: /third_party/node/test/parallel/test-ttywrap-stack.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../common');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci// This test ensures that console.log
51cb0ef41Sopenharmony_ci// will not crash the process if there
61cb0ef41Sopenharmony_ci// is not enough space on the V8 stack
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciconst done = common.mustCall();
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ciasync function test() {
111cb0ef41Sopenharmony_ci  await test();
121cb0ef41Sopenharmony_ci}
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci(async () => {
151cb0ef41Sopenharmony_ci  try {
161cb0ef41Sopenharmony_ci    await test();
171cb0ef41Sopenharmony_ci  } catch (err) {
181cb0ef41Sopenharmony_ci    console.log(err);
191cb0ef41Sopenharmony_ci  }
201cb0ef41Sopenharmony_ci})().then(done, done);
21

Indexes created Thu Nov 07 10:32:03 CST 2024