Created
January 15, 2019 19:04
-
-
Save pmurias/d868e9c9d5421d741bbd3d110b5ff55f to your computer and use it in GitHub Desktop.
async/await stacks sometimes work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function bottom() { | |
console.log('in bottom'); | |
const stack = new Error().stack; | |
console.log('stack:', '<<<' + stack + '>>>'); | |
console.log(typeof stack); | |
console.trace('stack trace'); | |
} | |
async function middle() { | |
await bottom(); | |
} | |
async function topmost() { | |
await middle(); | |
} | |
topmost(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment