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

async-error.js « fixtures « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48b19b40d8fb54905c5f3e7201bea430c8097584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';

async function one() {
  throw new Error('test');
}

async function breaker() {
  return true;
}

async function stack() {
  await breaker();
}

async function two() {
  await stack();
  await one();
}
async function three() {
  await two();
}

async function four() {
  await three();
}

module.exports = four;