mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
28 lines
327 B
JavaScript
28 lines
327 B
JavaScript
|
'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;
|