diff options
Diffstat (limited to 'test/fixtures/async-error.js')
-rw-r--r-- | test/fixtures/async-error.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/fixtures/async-error.js b/test/fixtures/async-error.js new file mode 100644 index 0000000000..48b19b40d8 --- /dev/null +++ b/test/fixtures/async-error.js @@ -0,0 +1,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; |